diff mbox

[kernel,1/1] powerpc/platforms/spufs: Use corresponding finish_wait for DEFINE_WAIT in spu_prio_wait

Message ID 1487752650-29318-1-git-send-email-fgao@ikuai8.com
State New
Headers show

Commit Message

高峰 Feb. 22, 2017, 8:37 a.m. UTC
From: Gao Feng <fgao@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@ikuai8.com>
---
 arch/powerpc/platforms/cell/spufs/sched.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox

Patch

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)