]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[POWERPC] spufs: remove stop_code from struct spu
authorMasato Noguchi <Masato.Noguchi@jp.sony.com>
Mon, 19 Jun 2006 18:33:31 +0000 (20:33 +0200)
committerPaul Mackerras <paulus@samba.org>
Wed, 21 Jun 2006 05:01:31 +0000 (15:01 +1000)
This patch remove 'stop_code' -- discarded member of struct spu.
It is written at initialize and interrupt, but never read
in current implementation.

Signed-off-by: Masato Noguchi <Masato.Noguchi@jp.sony.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spu_base.c
arch/powerpc/platforms/cell/spufs/switch.c
include/asm-powerpc/spu.h

index 8ca22394e4d3a4407727622b2f72030c75914319..249a0af4cc9913bd6037deae48c46215ce49b934 100644 (file)
@@ -160,7 +160,6 @@ static int __spu_trap_mailbox(struct spu *spu)
 static int __spu_trap_stop(struct spu *spu)
 {
        pr_debug("%s\n", __FUNCTION__);
-       spu->stop_code = in_be32(&spu->problem->spu_status_R);
        if (spu->stop_callback)
                spu->stop_callback(spu);
        return 0;
@@ -169,7 +168,6 @@ static int __spu_trap_stop(struct spu *spu)
 static int __spu_trap_halt(struct spu *spu)
 {
        pr_debug("%s\n", __FUNCTION__);
-       spu->stop_code = in_be32(&spu->problem->spu_status_R);
        if (spu->stop_callback)
                spu->stop_callback(spu);
        return 0;
index 2dae062a9aec6f0f3e15988bd5cc6f14f59f28f9..b30e55dab832f48bd910aec6be1b60fee2dbabc1 100644 (file)
@@ -2109,7 +2109,6 @@ int spu_restore(struct spu_state *new, struct spu *spu)
 
        acquire_spu_lock(spu);
        harvest(NULL, spu);
-       spu->stop_code = 0;
        spu->dar = 0;
        spu->dsisr = 0;
        spu->slb_replace = 0;
index c7812e92f6838f5c1cad4b4c1e61c721eecf94d3..c0290f9d20bd50a345852bc2bbdb03d7ca1135c4 100644 (file)
@@ -134,7 +134,6 @@ struct spu {
        int class_0_pending;
        spinlock_t register_lock;
 
-       u32 stop_code;
        void (* wbox_callback)(struct spu *spu);
        void (* ibox_callback)(struct spu *spu);
        void (* stop_callback)(struct spu *spu);