summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/process.c
diff options
context:
space:
mode:
authorLen Brown2011-04-01 21:28:09 +0200
committerLen Brown2011-05-29 09:39:14 +0200
commit06ae40ce073daf233607a3c54a489f2c1e44683e (patch)
tree50069eb65a46f343512b55c7de0cc74f6eadc2bd /arch/x86/kernel/process.c
parentx86 idle: clarify AMD erratum 400 workaround (diff)
downloadkernel-qcow2-linux-06ae40ce073daf233607a3c54a489f2c1e44683e.tar.gz
kernel-qcow2-linux-06ae40ce073daf233607a3c54a489f2c1e44683e.tar.xz
kernel-qcow2-linux-06ae40ce073daf233607a3c54a489f2c1e44683e.zip
x86 idle: EXPORT_SYMBOL(default_idle, pm_idle) only when APM demands it
In the long run, we don't want default_idle() or (pm_idle)() to be exported outside of process.c. Start by not exporting them to modules, unless the APM build demands it. cc: x86@kernel.org cc: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Len Brown <len.brown@intel.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 2efbfb712fb7..84f3cdae4407 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -340,7 +340,9 @@ EXPORT_SYMBOL(boot_option_idle_override);
* Powermanagement idle function, if any..
*/
void (*pm_idle)(void);
+#if defined(CONFIG_APM_MODULE) && defined(CONFIG_APM_CPU_IDLE)
EXPORT_SYMBOL(pm_idle);
+#endif
#ifdef CONFIG_X86_32
/*
@@ -400,7 +402,7 @@ void default_idle(void)
cpu_relax();
}
}
-#ifdef CONFIG_APM_MODULE
+#if defined(CONFIG_APM_MODULE) && defined(CONFIG_APM_CPU_IDLE)
EXPORT_SYMBOL(default_idle);
#endif