summaryrefslogtreecommitdiff
path: root/kernel/locking
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-03-26 16:29:42 +0100
committerIngo Molnar <mingo@kernel.org>2021-03-29 15:57:04 +0200
commit82cd5b1039e26b1b1254886464991e34de439ac5 (patch)
tree2ad00f6b1a085ac9899a78d512dc43a538f7dbe7 /kernel/locking
parent70c80103aafdeae99126694bc1cd54de016bc258 (diff)
locking/rtmutex: Fix misleading comment in rt_mutex_postunlock()
Preemption is disabled in mark_wakeup_next_waiter(,) not in rt_mutex_slowunlock(). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20210326153944.341734608@linutronix.de
Diffstat (limited to 'kernel/locking')
-rw-r--r--kernel/locking/rtmutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/locking/rtmutex.c b/kernel/locking/rtmutex.c
index 7d0c16871033..512b400bd961 100644
--- a/kernel/locking/rtmutex.c
+++ b/kernel/locking/rtmutex.c
@@ -1305,7 +1305,7 @@ void __sched rt_mutex_postunlock(struct wake_q_head *wake_q)
{
wake_up_q(wake_q);
- /* Pairs with preempt_disable() in rt_mutex_slowunlock() */
+ /* Pairs with preempt_disable() in mark_wakeup_next_waiter() */
preempt_enable();
}