aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/swait.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched/swait.c')
-rw-r--r--kernel/sched/swait.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/sched/swait.c b/kernel/sched/swait.c
index 66890de93ee5..66b59ac77c22 100644
--- a/kernel/sched/swait.c
+++ b/kernel/sched/swait.c
@@ -32,7 +32,7 @@ void swake_up_locked(struct swait_queue_head *q)
32} 32}
33EXPORT_SYMBOL(swake_up_locked); 33EXPORT_SYMBOL(swake_up_locked);
34 34
35void swake_up(struct swait_queue_head *q) 35void swake_up_one(struct swait_queue_head *q)
36{ 36{
37 unsigned long flags; 37 unsigned long flags;
38 38
@@ -40,7 +40,7 @@ void swake_up(struct swait_queue_head *q)
40 swake_up_locked(q); 40 swake_up_locked(q);
41 raw_spin_unlock_irqrestore(&q->lock, flags); 41 raw_spin_unlock_irqrestore(&q->lock, flags);
42} 42}
43EXPORT_SYMBOL(swake_up); 43EXPORT_SYMBOL(swake_up_one);
44 44
45/* 45/*
46 * Does not allow usage from IRQ disabled, since we must be able to 46 * Does not allow usage from IRQ disabled, since we must be able to
@@ -76,7 +76,7 @@ static void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *w
76 list_add_tail(&wait->task_list, &q->task_list); 76 list_add_tail(&wait->task_list, &q->task_list);
77} 77}
78 78
79void prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait, int state) 79void prepare_to_swait_exclusive(struct swait_queue_head *q, struct swait_queue *wait, int state)
80{ 80{
81 unsigned long flags; 81 unsigned long flags;
82 82
@@ -85,7 +85,7 @@ void prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait, int
85 set_current_state(state); 85 set_current_state(state);
86 raw_spin_unlock_irqrestore(&q->lock, flags); 86 raw_spin_unlock_irqrestore(&q->lock, flags);
87} 87}
88EXPORT_SYMBOL(prepare_to_swait); 88EXPORT_SYMBOL(prepare_to_swait_exclusive);
89 89
90long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state) 90long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state)
91{ 91{
@@ -95,7 +95,7 @@ long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait
95 raw_spin_lock_irqsave(&q->lock, flags); 95 raw_spin_lock_irqsave(&q->lock, flags);
96 if (unlikely(signal_pending_state(state, current))) { 96 if (unlikely(signal_pending_state(state, current))) {
97 /* 97 /*
98 * See prepare_to_wait_event(). TL;DR, subsequent swake_up() 98 * See prepare_to_wait_event(). TL;DR, subsequent swake_up_one()
99 * must not see us. 99 * must not see us.
100 */ 100 */
101 list_del_init(&wait->task_list); 101 list_del_init(&wait->task_list);