sched/wake_q: Provide WAKE_Q_HEAD_INITIALIZER()
authorThomas Gleixner <tglx@linutronix.de>
Sun, 15 Aug 2021 21:27:49 +0000 (23:27 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Aug 2021 14:57:55 +0000 (16:57 +0200)
commit2c8bb85151d4bad825f8962792e9f53d22db81db
treef3b8ed95203ad62860f10428ae9026a4f200da94
parent6991436c2b5d91d5358d9914ae2df22b9a1d1dc9
sched/wake_q: Provide WAKE_Q_HEAD_INITIALIZER()

The RT specific spin/rwlock implementation requires special handling of the
to be woken waiters. Provide a WAKE_Q_HEAD_INITIALIZER(), which can be used by
the rtmutex code to implement an RT aware wake_q derivative.

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/20210815211302.429918071@linutronix.de
include/linux/sched/wake_q.h