Messages in this thread Patch in this message | | | From | Wang Qing <> | Subject | [PATCH] sched: swait: use wake_up_process() instead of wake_up_state() | Date | Tue, 16 Mar 2021 19:20:02 +0800 |
| |
Why not just use wake_up_process().
Signed-off-by: Wang Qing <wangqing@vivo.com> --- kernel/sched/swait.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/swait.c b/kernel/sched/swait.c index e1c655f..7a24925 --- a/kernel/sched/swait.c +++ b/kernel/sched/swait.c @@ -69,7 +69,7 @@ void swake_up_all(struct swait_queue_head *q) while (!list_empty(&tmp)) { curr = list_first_entry(&tmp, typeof(*curr), task_list); - wake_up_state(curr->task, TASK_NORMAL); + wake_up_process(curr->task); list_del_init(&curr->task_list); if (list_empty(&tmp)) -- 2.7.4
| |