提交 89cedfef 编写于 作者: V Venkatesh Pallipadi 提交者: Len Brown

cpuidle: upon BIOS bug, default to default_idle rather than polling

http://bugzilla.kernel.org/show_bug.cgi?id=11345Signed-off-by: NVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 addbad46
...@@ -123,6 +123,9 @@ config GENERIC_TIME_VSYSCALL ...@@ -123,6 +123,9 @@ config GENERIC_TIME_VSYSCALL
config ARCH_HAS_CPU_RELAX config ARCH_HAS_CPU_RELAX
def_bool y def_bool y
config ARCH_HAS_DEFAULT_IDLE
def_bool y
config ARCH_HAS_CACHE_LINE_SIZE config ARCH_HAS_CACHE_LINE_SIZE
def_bool y def_bool y
......
...@@ -56,7 +56,11 @@ static void cpuidle_idle_call(void) ...@@ -56,7 +56,11 @@ static void cpuidle_idle_call(void)
if (pm_idle_old) if (pm_idle_old)
pm_idle_old(); pm_idle_old();
else else
#if defined(CONFIG_ARCH_HAS_DEFAULT_IDLE)
default_idle();
#else
local_irq_enable(); local_irq_enable();
#endif
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册