Commit 4a1625133d4faaefcec0dc175941f49b186918d9

Authored by Thomas Gleixner
1 parent f37f435f33

cpuidle: Use kick_all_cpus_sync()

kick_all_cpus_sync() is the core implementation of cpu_idle_wait()
which is copied all over the arch code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20120507175652.119842173@linutronix.de

Showing 1 changed file with 1 additions and 12 deletions Side-by-side Diff

drivers/cpuidle/cpuidle.c
... ... @@ -40,17 +40,6 @@
40 40 off = 1;
41 41 }
42 42  
43   -#if defined(CONFIG_ARCH_HAS_CPU_IDLE_WAIT)
44   -static void cpuidle_kick_cpus(void)
45   -{
46   - cpu_idle_wait();
47   -}
48   -#elif defined(CONFIG_SMP)
49   -# error "Arch needs cpu_idle_wait() equivalent here"
50   -#else /* !CONFIG_ARCH_HAS_CPU_IDLE_WAIT && !CONFIG_SMP */
51   -static void cpuidle_kick_cpus(void) {}
52   -#endif
53   -
54 43 static int __cpuidle_register_device(struct cpuidle_device *dev);
55 44  
56 45 static inline int cpuidle_enter(struct cpuidle_device *dev,
... ... @@ -186,7 +175,7 @@
186 175 {
187 176 if (enabled_devices) {
188 177 initialized = 0;
189   - cpuidle_kick_cpus();
  178 + kick_all_cpus_sync();
190 179 }
191 180 }
192 181