diff options
author | Len Brown <len.brown@intel.com> | 2011-04-01 15:28:09 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-05-29 03:39:14 -0400 |
commit | 06ae40ce073daf233607a3c54a489f2c1e44683e (patch) | |
tree | 50069eb65a46f343512b55c7de0cc74f6eadc2bd /arch | |
parent | 02c68a02018669d1817c43c42de800975cbec467 (diff) |
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')
-rw-r--r-- | arch/x86/kernel/process.c | 4 |
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); | |||
340 | * Powermanagement idle function, if any.. | 340 | * Powermanagement idle function, if any.. |
341 | */ | 341 | */ |
342 | void (*pm_idle)(void); | 342 | void (*pm_idle)(void); |
343 | #if defined(CONFIG_APM_MODULE) && defined(CONFIG_APM_CPU_IDLE) | ||
343 | EXPORT_SYMBOL(pm_idle); | 344 | EXPORT_SYMBOL(pm_idle); |
345 | #endif | ||
344 | 346 | ||
345 | #ifdef CONFIG_X86_32 | 347 | #ifdef CONFIG_X86_32 |
346 | /* | 348 | /* |
@@ -400,7 +402,7 @@ void default_idle(void) | |||
400 | cpu_relax(); | 402 | cpu_relax(); |
401 | } | 403 | } |
402 | } | 404 | } |
403 | #ifdef CONFIG_APM_MODULE | 405 | #if defined(CONFIG_APM_MODULE) && defined(CONFIG_APM_CPU_IDLE) |
404 | EXPORT_SYMBOL(default_idle); | 406 | EXPORT_SYMBOL(default_idle); |
405 | #endif | 407 | #endif |
406 | 408 | ||