[PATCH]acpi cpuidle: Fix kernel oops when tickless is not enabled

Youquan,Song
2009-12-16T06:41:57Z

Current kernel, if tickless is disabled,cpuidle governor ladder is built in,
the kernel will boot oops on Boxboro-EX.

After check in driver/cpuidle/Kconfig, menu governor built in kernel depends
on tickless,but ladder governor has no such dependency.

This patch add depnencey for ladder governor, so when tickless is disabled,
ladder governor will not be built in.

This is workround patch and the complete fix need be done at tickless.

Signed-off-by: Youquan, Song <youquan.song@intel.com>
---

diff --git a/drivers/cpuidle/Kconfig b/drivers/cpuidle/Kconfig
index 7dbc4a8..78d6d74 100644
--- a/drivers/cpuidle/Kconfig
+++ b/drivers/cpuidle/Kconfig
@@ -11,7 +11,7 @@ config CPU_IDLE

config CPU_IDLE_GOV_LADDER
bool
- depends on CPU_IDLE
+ depends on CPU_IDLE && NO_HZ
default y

config CPU_IDLE_GOV_MENU