[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1616122760-11790-1-git-send-email-wangqing@vivo.com>
Date: Fri, 19 Mar 2021 10:59:20 +0800
From: Wang Qing <wangqing@...o.com>
To: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Darren Hart <dvhart@...radead.org>,
linux-kernel@...r.kernel.org
Cc: Wang Qing <wangqing@...o.com>
Subject: [PATCH] futex: use wake_up_process() instead of wake_up_state()
Using wake_up_process() is more simpler and friendly,
and it is more convenient for analysis and statistics
Signed-off-by: Wang Qing <wangqing@...o.com>
---
kernel/futex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/futex.c b/kernel/futex.c
index e68db77..078a1f9
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -1820,7 +1820,7 @@ void requeue_pi_wake_futex(struct futex_q *q, union futex_key *key,
q->lock_ptr = &hb->lock;
- wake_up_state(q->task, TASK_NORMAL);
+ wake_up_process(q->task);
}
/**
--
2.7.4
Powered by blists - more mailing lists