diff options
author | Peter Zijlstra <peterz@infradead.org> | 2018-06-12 04:34:52 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-06-20 05:35:56 -0400 |
commit | b3dae109fa89d67334bf3349babab3ad9b6f233f (patch) | |
tree | 0628528fc9c51dd3927d542d986396fd3e8706cf /kernel/power | |
parent | 0abf17bc7790dd0467ed0e38522242f23c5da1c4 (diff) |
sched/swait: Rename to exclusive
Since swait basically implemented exclusive waits only, make sure
the API reflects that.
$ git grep -l -e "\<swake_up\>"
-e "\<swait_event[^ (]*"
-e "\<prepare_to_swait\>" | while read file;
do
sed -i -e 's/\<swake_up\>/&_one/g'
-e 's/\<swait_event[^ (]*/&_exclusive/g'
-e 's/\<prepare_to_swait\>/&_exclusive/g' $file;
done
With a few manual touch-ups.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: bigeasy@linutronix.de
Cc: oleg@redhat.com
Cc: paulmck@linux.vnet.ibm.com
Cc: pbonzini@redhat.com
Link: https://lkml.kernel.org/r/20180612083909.261946548@infradead.org
Diffstat (limited to 'kernel/power')
-rw-r--r-- | kernel/power/suspend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index 87331565e505..70178f6ffdc4 100644 --- a/kernel/power/suspend.c +++ b/kernel/power/suspend.c | |||
@@ -92,7 +92,7 @@ static void s2idle_enter(void) | |||
92 | /* Push all the CPUs into the idle loop. */ | 92 | /* Push all the CPUs into the idle loop. */ |
93 | wake_up_all_idle_cpus(); | 93 | wake_up_all_idle_cpus(); |
94 | /* Make the current CPU wait so it can enter the idle loop too. */ | 94 | /* Make the current CPU wait so it can enter the idle loop too. */ |
95 | swait_event(s2idle_wait_head, | 95 | swait_event_exclusive(s2idle_wait_head, |
96 | s2idle_state == S2IDLE_STATE_WAKE); | 96 | s2idle_state == S2IDLE_STATE_WAKE); |
97 | 97 | ||
98 | cpuidle_pause(); | 98 | cpuidle_pause(); |
@@ -160,7 +160,7 @@ void s2idle_wake(void) | |||
160 | raw_spin_lock_irqsave(&s2idle_lock, flags); | 160 | raw_spin_lock_irqsave(&s2idle_lock, flags); |
161 | if (s2idle_state > S2IDLE_STATE_NONE) { | 161 | if (s2idle_state > S2IDLE_STATE_NONE) { |
162 | s2idle_state = S2IDLE_STATE_WAKE; | 162 | s2idle_state = S2IDLE_STATE_WAKE; |
163 | swake_up(&s2idle_wait_head); | 163 | swake_up_one(&s2idle_wait_head); |
164 | } | 164 | } |
165 | raw_spin_unlock_irqrestore(&s2idle_lock, flags); | 165 | raw_spin_unlock_irqrestore(&s2idle_lock, flags); |
166 | } | 166 | } |