[PATCH kernel 1/1] powerpc/platforms/spufs: Use corresponding finish_wait for DEFINE_WAIT in spu_prio_wait
fgao at ikuai8.com
fgao at ikuai8.com
Wed Feb 22 19:37:30 AEDT 2017
From: Gao Feng <fgao at ikuai8.com>
It should use finish_wait instead of remove_wait_queue when define
the waitqueue by DEFINE_WAIT.
Signed-off-by: Gao Feng <fgao at ikuai8.com>
---
arch/powerpc/platforms/cell/spufs/sched.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c
index 25db92a..76cbcc5 100644
--- a/arch/powerpc/platforms/cell/spufs/sched.c
+++ b/arch/powerpc/platforms/cell/spufs/sched.c
@@ -564,8 +564,7 @@ static void spu_prio_wait(struct spu_context *ctx)
__spu_del_from_rq(ctx);
}
spin_unlock(&spu_prio->runq_lock);
- __set_current_state(TASK_RUNNING);
- remove_wait_queue(&ctx->stop_wq, &wait);
+ finish_wait(&ctx->stop_wq, &wait);
}
static struct spu *spu_get_idle(struct spu_context *ctx)
--
1.9.1
More information about the Linuxppc-dev
mailing list