diff options
author | Andy Whitcroft <[email protected]> | 2011-06-14 12:45:10 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-06-14 13:42:20 -0700 |
commit | 60b8b1de0dd2bf246f0e074d287bb3f0bc42a755 (patch) | |
tree | 8ade86fd1209fe789c4022db0f17d4c7292c1a6d | |
parent | 3a2289a4a317e0290a8bc7af28c62c9830cb12e5 (diff) |
x86 idle: APM requires pm_idle/default_idle unconditionally when a module
[ Also from Ben Hutchings <[email protected]> and Vitaliy Ivanov
<[email protected]> ]
Commit 06ae40ce073d ("x86 idle: EXPORT_SYMBOL(default_idle, pm_idle)
only when APM demands it") removed the export for pm_idle/default_idle
unless the apm module was modularised and CONFIG_APM_CPU_IDLE was set.
But the apm module uses pm_idle/default_idle unconditionally,
CONFIG_APM_CPU_IDLE only affects the bios idle threshold. Adjust the
export accordingly.
[ Used #ifdef instead of #if defined() as it's shorter, and what both
Ben and Vitaliy used.. Andy, you're out-voted ;) - Linus ]
Reported-by: Randy Dunlap <[email protected]>
Acked-by: Jiri Kosina <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Acked-by: Len Brown <[email protected]>
Signed-off-by: Andy Whitcroft <[email protected]>
Signed-off-by: Vitaliy Ivanov <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | arch/x86/kernel/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index 2e4928d45a2d..e1ba8cb24e4e 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c @@ -337,7 +337,7 @@ 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) +#ifdef CONFIG_APM_MODULE EXPORT_SYMBOL(pm_idle); #endif @@ -399,7 +399,7 @@ void default_idle(void) cpu_relax(); } } -#if defined(CONFIG_APM_MODULE) && defined(CONFIG_APM_CPU_IDLE) +#ifdef CONFIG_APM_MODULE EXPORT_SYMBOL(default_idle); #endif |