From 3c9370f7b6bffd697c9907a7139e9df5b0d4b9df Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 20 Nov 2023 10:14:11 +0000 Subject: [PATCH] enable OTG_EN_OC_GPIO0_C2 vcc3v3_lcd0_n gpio --- kernel/include/linux/sched/wake_q.h | 27 ++++++++++++++++++++++++--- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/kernel/include/linux/sched/wake_q.h b/kernel/include/linux/sched/wake_q.h index a3661e9..1c4438f 100644 --- a/kernel/include/linux/sched/wake_q.h +++ b/kernel/include/linux/sched/wake_q.h @@ -49,8 +49,29 @@ head->count = 0; } -extern void wake_q_add(struct wake_q_head *head, - struct task_struct *task); -extern void wake_up_q(struct wake_q_head *head); +extern void __wake_q_add(struct wake_q_head *head, + struct task_struct *task, bool sleeper); +static inline void wake_q_add(struct wake_q_head *head, + struct task_struct *task) +{ + __wake_q_add(head, task, false); +} + +static inline void wake_q_add_sleeper(struct wake_q_head *head, + struct task_struct *task) +{ + __wake_q_add(head, task, true); +} + +extern void __wake_up_q(struct wake_q_head *head, bool sleeper); +static inline void wake_up_q(struct wake_q_head *head) +{ + __wake_up_q(head, false); +} + +static inline void wake_up_q_sleeper(struct wake_q_head *head) +{ + __wake_up_q(head, true); +} #endif /* _LINUX_SCHED_WAKE_Q_H */ -- Gitblit v1.6.2