提交 5e961578 编写于 作者: X Xiangyou Xie 提交者: Yang Yingliang

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

hulk inclusion
category: feature
bugzilla: NA
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>
Reviewed-by: Nzhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 931b6ccd
...@@ -559,6 +559,7 @@ void __cpuidle default_idle(void) ...@@ -559,6 +559,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.
先完成此消息的编辑!
想要评论请 注册