]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/cpuidle.h
cpuidle: build fix for non-x86
[linux-2.6-omap-h63xx.git] / include / linux / cpuidle.h
index 16a51546db444f9cbbbc0d845b312621eec0ae44..cb95f5a9075ab5fdb04ee062ab5201c233429c14 100644 (file)
@@ -72,6 +72,19 @@ cpuidle_set_statedata(struct cpuidle_state *state, void *data)
        state->driver_data = data;
 }
 
+#ifdef CONFIG_SMP
+#ifdef CONFIG_ARCH_HAS_CPU_IDLE_WAIT
+static inline void cpuidle_kick_cpus(void)
+{
+       cpu_idle_wait();
+}
+#else /* !CONFIG_ARCH_HAS_CPU_IDLE_WAIT */
+#error "Arch needs cpu_idle_wait() equivalent here"
+#endif /* !CONFIG_ARCH_HAS_CPU_IDLE_WAIT */
+#else /* !CONFIG_SMP */
+static inline void cpuidle_kick_cpus(void) {}
+#endif /* !CONFIG_SMP */
+
 struct cpuidle_state_kobj {
        struct cpuidle_state *state;
        struct completion kobj_unregister;