提交 d1eacf3b 编写于 作者: X Xiangyou Xie 提交者: Zheng Zengkai

cpuidle-haltpoll: Use arch_cpu_idle() to replace default_idle()

hulk inclusion
category: feature
bugzilla: 47727
CVE: NA

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

Use arch_cpu_idle() to replace default_idle() in default_enter_idle().
default_idle() is defined only in x86.
Signed-off-by: NXiangyou Xie <xiexiangyou@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 b08fba6e
...@@ -689,6 +689,7 @@ void __cpuidle default_idle(void) ...@@ -689,6 +689,7 @@ void __cpuidle default_idle(void)
} }
#if defined(CONFIG_APM_MODULE) || defined(CONFIG_HALTPOLL_CPUIDLE_MODULE) #if defined(CONFIG_APM_MODULE) || defined(CONFIG_HALTPOLL_CPUIDLE_MODULE)
EXPORT_SYMBOL(default_idle); EXPORT_SYMBOL(default_idle);
EXPORT_SYMBOL(arch_cpu_idle);
#endif #endif
#ifdef CONFIG_XEN #ifdef CONFIG_XEN
......
...@@ -32,7 +32,7 @@ static int default_enter_idle(struct cpuidle_device *dev, ...@@ -32,7 +32,7 @@ static int default_enter_idle(struct cpuidle_device *dev,
local_irq_enable(); local_irq_enable();
return index; return index;
} }
default_idle(); arch_cpu_idle();
return index; return index;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册