提交 59863798 编写于 作者: P Peng Liang 提交者: Zheng Zengkai

cpuidle: haltpoll: Only check boot_option_idle_override in x86

hulk inclusion
category: feature
bugzilla: 47727
CVE: NA

------------------------------

boot_option_idle_override is defined only in x86/ia64.  Since haltpoll
supports x86 and arm64, let's check boot_option_idle_override only in
x86.
Signed-off-by: NPeng Liang <liangpeng10@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 009c7d77
...@@ -104,9 +104,11 @@ static int __init haltpoll_init(void) ...@@ -104,9 +104,11 @@ static int __init haltpoll_init(void)
int ret; int ret;
struct cpuidle_driver *drv = &haltpoll_driver; struct cpuidle_driver *drv = &haltpoll_driver;
#ifdef CONFIG_X86
/* Do not load haltpoll if idle= is passed */ /* Do not load haltpoll if idle= is passed */
if (boot_option_idle_override != IDLE_NO_OVERRIDE) if (boot_option_idle_override != IDLE_NO_OVERRIDE)
return -ENODEV; return -ENODEV;
#endif
cpuidle_poll_state_init(drv); cpuidle_poll_state_init(drv);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册