提交 2eabbbd3 编写于 作者: M Masato Noguchi 提交者: Paul Mackerras

[POWERPC] spufs: remove stop_code from struct spu

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: NMasato Noguchi <Masato.Noguchi@jp.sony.com>
Signed-off-by: NArnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 a91942ae
...@@ -160,7 +160,6 @@ static int __spu_trap_mailbox(struct spu *spu) ...@@ -160,7 +160,6 @@ static int __spu_trap_mailbox(struct spu *spu)
static int __spu_trap_stop(struct spu *spu) static int __spu_trap_stop(struct spu *spu)
{ {
pr_debug("%s\n", __FUNCTION__); pr_debug("%s\n", __FUNCTION__);
spu->stop_code = in_be32(&spu->problem->spu_status_R);
if (spu->stop_callback) if (spu->stop_callback)
spu->stop_callback(spu); spu->stop_callback(spu);
return 0; return 0;
...@@ -169,7 +168,6 @@ static int __spu_trap_stop(struct spu *spu) ...@@ -169,7 +168,6 @@ static int __spu_trap_stop(struct spu *spu)
static int __spu_trap_halt(struct spu *spu) static int __spu_trap_halt(struct spu *spu)
{ {
pr_debug("%s\n", __FUNCTION__); pr_debug("%s\n", __FUNCTION__);
spu->stop_code = in_be32(&spu->problem->spu_status_R);
if (spu->stop_callback) if (spu->stop_callback)
spu->stop_callback(spu); spu->stop_callback(spu);
return 0; return 0;
......
...@@ -2109,7 +2109,6 @@ int spu_restore(struct spu_state *new, struct spu *spu) ...@@ -2109,7 +2109,6 @@ int spu_restore(struct spu_state *new, struct spu *spu)
acquire_spu_lock(spu); acquire_spu_lock(spu);
harvest(NULL, spu); harvest(NULL, spu);
spu->stop_code = 0;
spu->dar = 0; spu->dar = 0;
spu->dsisr = 0; spu->dsisr = 0;
spu->slb_replace = 0; spu->slb_replace = 0;
......
...@@ -134,7 +134,6 @@ struct spu { ...@@ -134,7 +134,6 @@ struct spu {
int class_0_pending; int class_0_pending;
spinlock_t register_lock; spinlock_t register_lock;
u32 stop_code;
void (* wbox_callback)(struct spu *spu); void (* wbox_callback)(struct spu *spu);
void (* ibox_callback)(struct spu *spu); void (* ibox_callback)(struct spu *spu);
void (* stop_callback)(struct spu *spu); void (* stop_callback)(struct spu *spu);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册