aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/process.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2013-02-09 23:08:07 -0500
committerLen Brown <len.brown@intel.com>2013-02-10 01:06:34 -0500
commit6a377ddc4e4ede2eeb9cd46ada23bbe417704fc9 (patch)
tree6e97b12ef974ea03d22ea05a92824293c3eeca0b /arch/x86/kernel/process.c
parent88b62b915b0b7e25870eb0604ed9a92ba4bfc9f7 (diff)
xen idle: make xen-specific macro xen-specific
This macro is only invoked by Xen, so make its definition specific to Xen. > set_pm_idle_to_default() < xen_set_default_idle() Signed-off-by: Len Brown <len.brown@intel.com> Cc: xen-devel@lists.xensource.com
Diffstat (limited to 'arch/x86/kernel/process.c')
-rw-r--r--arch/x86/kernel/process.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 2ed787f15bf0..7ed9f6b08ba0 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -396,7 +396,8 @@ void default_idle(void)
396EXPORT_SYMBOL(default_idle); 396EXPORT_SYMBOL(default_idle);
397#endif 397#endif
398 398
399bool set_pm_idle_to_default(void) 399#ifdef CONFIG_XEN
400bool xen_set_default_idle(void)
400{ 401{
401 bool ret = !!pm_idle; 402 bool ret = !!pm_idle;
402 403
@@ -404,6 +405,7 @@ bool set_pm_idle_to_default(void)
404 405
405 return ret; 406 return ret;
406} 407}
408#endif
407void stop_this_cpu(void *dummy) 409void stop_this_cpu(void *dummy)
408{ 410{
409 local_irq_disable(); 411 local_irq_disable();