locking/rtmutex: Provide rt_wake_q_head and helpers
authorThomas Gleixner <tglx@linutronix.de>
Sun, 15 Aug 2021 21:28:08 +0000 (23:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Aug 2021 15:18:15 +0000 (17:18 +0200)
commitb576e640ce5e22673e12949cf14ae3cb18d9b859
treefc43cf3953ecad51677d7f4759e9bc9f84bf78e6
parentc014ef69b3acdb8c9e7fc412e96944f4d5c36fa0
locking/rtmutex: Provide rt_wake_q_head and helpers

To handle the difference between wakeups for regular sleeping locks (mutex,
rtmutex, rw_semaphore) and the wakeups for 'sleeping' spin/rwlocks on
PREEMPT_RT enabled kernels correctly, it is required to provide a
wake_q_head construct which allows to keep them separate.

Provide a wrapper around wake_q_head and the required helpers, which will be
extended with the state handling later.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210815211303.139337655@linutronix.de
kernel/locking/rtmutex.c
kernel/locking/rtmutex_common.h