[PATCH] sched: swait: use wake_up_process() instead of wake_up_state()

From: Wang Qing
Date: Tue Mar 16 2021 - 07:21:23 EST


Why not just use wake_up_process().

Signed-off-by: Wang Qing <wangqing@xxxxxxxx>
---
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