hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
kernel/include/linux/sched/wake_q.h
....@@ -49,8 +49,29 @@
4949 head->count = 0;
5050 }
5151
52
-extern void wake_q_add(struct wake_q_head *head,
53
- struct task_struct *task);
54
-extern void wake_up_q(struct wake_q_head *head);
52
+extern void __wake_q_add(struct wake_q_head *head,
53
+ struct task_struct *task, bool sleeper);
54
+static inline void wake_q_add(struct wake_q_head *head,
55
+ struct task_struct *task)
56
+{
57
+ __wake_q_add(head, task, false);
58
+}
59
+
60
+static inline void wake_q_add_sleeper(struct wake_q_head *head,
61
+ struct task_struct *task)
62
+{
63
+ __wake_q_add(head, task, true);
64
+}
65
+
66
+extern void __wake_up_q(struct wake_q_head *head, bool sleeper);
67
+static inline void wake_up_q(struct wake_q_head *head)
68
+{
69
+ __wake_up_q(head, false);
70
+}
71
+
72
+static inline void wake_up_q_sleeper(struct wake_q_head *head)
73
+{
74
+ __wake_up_q(head, true);
75
+}
5576
5677 #endif /* _LINUX_SCHED_WAKE_Q_H */