summaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle
diff options
context:
space:
mode:
authorVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>2008-10-16 19:00:08 -0400
committerLen Brown <len.brown@intel.com>2008-10-16 19:00:08 -0400
commit89cedfefca1d446ee2598fd3bcbb23ee3802e26a (patch)
tree8b64a39b4bc1fda76dfdecdb9c97d05a017c99c2 /drivers/cpuidle
parentaddbad46ed0906cd584784423b9d0babc7476446 (diff)
downloadop-kernel-dev-89cedfefca1d446ee2598fd3bcbb23ee3802e26a.zip
op-kernel-dev-89cedfefca1d446ee2598fd3bcbb23ee3802e26a.tar.gz
cpuidle: upon BIOS bug, default to default_idle rather than polling
http://bugzilla.kernel.org/show_bug.cgi?id=11345 Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r--drivers/cpuidle/cpuidle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c
index eb2cade..bb6e3b3 100644
--- a/drivers/cpuidle/cpuidle.c
+++ b/drivers/cpuidle/cpuidle.c
@@ -56,7 +56,11 @@ static void cpuidle_idle_call(void)
if (pm_idle_old)
pm_idle_old();
else
+#if defined(CONFIG_ARCH_HAS_DEFAULT_IDLE)
+ default_idle();
+#else
local_irq_enable();
+#endif
return;
}
OpenPOWER on IntegriCloud