Commit 06ae40ce authored by Len Brown's avatar Len Brown

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: default avatarLen Brown <len.brown@intel.com>
parent 02c68a02
...@@ -340,7 +340,9 @@ EXPORT_SYMBOL(boot_option_idle_override); ...@@ -340,7 +340,9 @@ EXPORT_SYMBOL(boot_option_idle_override);
* Powermanagement idle function, if any.. * Powermanagement idle function, if any..
*/ */
void (*pm_idle)(void); void (*pm_idle)(void);
#if defined(CONFIG_APM_MODULE) && defined(CONFIG_APM_CPU_IDLE)
EXPORT_SYMBOL(pm_idle); EXPORT_SYMBOL(pm_idle);
#endif
#ifdef CONFIG_X86_32 #ifdef CONFIG_X86_32
/* /*
...@@ -400,7 +402,7 @@ void default_idle(void) ...@@ -400,7 +402,7 @@ void default_idle(void)
cpu_relax(); cpu_relax();
} }
} }
#ifdef CONFIG_APM_MODULE #if defined(CONFIG_APM_MODULE) && defined(CONFIG_APM_CPU_IDLE)
EXPORT_SYMBOL(default_idle); EXPORT_SYMBOL(default_idle);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment