Skip to contentSkip to conversation

CPUidle: compile fix for non-x86

PATCH New Kevin Hilman 1 participant 1 message Jan 30, 2008 CPU idle time management framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CPUidle: compile fix for non-x86

Wrap cpu_idle_wait() in an x86 #ifdef since it's x86 only.

drivers/cpuidle/cpuidle.c +2 -0
index d2fabe7..4d0f9b0 100644
@@ -82,7 +82,9 @@ void cpuidle_uninstall_idle_handler(void)
 {
 	if (enabled_devices && (pm_idle != pm_idle_old)) {
 		pm_idle = pm_idle_old;
+#ifdef CONFIG_X86
 		cpu_idle_wait();
+#endif
 	}
 }