mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-18 04:54:52 +00:00
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
This commit is contained in:
parent
6991436c2b
commit
2c8bb85151
1 changed files with 5 additions and 2 deletions
|
@ -42,8 +42,11 @@ struct wake_q_head {
|
|||
|
||||
#define WAKE_Q_TAIL ((struct wake_q_node *) 0x01)
|
||||
|
||||
#define DEFINE_WAKE_Q(name) \
|
||||
struct wake_q_head name = { WAKE_Q_TAIL, &name.first }
|
||||
#define WAKE_Q_HEAD_INITIALIZER(name) \
|
||||
{ WAKE_Q_TAIL, &name.first }
|
||||
|
||||
#define DEFINE_WAKE_Q(name) \
|
||||
struct wake_q_head name = WAKE_Q_HEAD_INITIALIZER(name)
|
||||
|
||||
static inline void wake_q_init(struct wake_q_head *head)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue