]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
cpuidle: upon BIOS bug, default to default_idle rather than polling
authorVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Thu, 16 Oct 2008 23:00:08 +0000 (19:00 -0400)
committerLen Brown <len.brown@intel.com>
Thu, 16 Oct 2008 23:00:08 +0000 (19:00 -0400)
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>
arch/x86/Kconfig
drivers/cpuidle/cpuidle.c

index ed92864d1325c09092f3e8ed4918f26341f23161..f8caf040650ef0d45b72912de5d0fc3577c57b9e 100644 (file)
@@ -123,6 +123,9 @@ config GENERIC_TIME_VSYSCALL
 config ARCH_HAS_CPU_RELAX
        def_bool y
 
+config ARCH_HAS_DEFAULT_IDLE
+       def_bool y
+
 config ARCH_HAS_CACHE_LINE_SIZE
        def_bool y
 
index eb2cade562db5b5e83054fba788ca6f38accfc6e..bb6e3b338043e13e8e87bc8fceaad67e8f6a9dcc 100644 (file)
@@ -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;
        }