| .. | .. |
|---|
| 49 | 49 | head->count = 0; |
|---|
| 50 | 50 | } |
|---|
| 51 | 51 | |
|---|
| 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 | +} |
|---|
| 55 | 76 | |
|---|
| 56 | 77 | #endif /* _LINUX_SCHED_WAKE_Q_H */ |
|---|