Skip to content

Commit

Permalink
x86 idle: EXPORT_SYMBOL(default_idle, pm_idle) only when APM demands it
Browse files Browse the repository at this point in the history
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: [email protected]
cc: Jiri Kosina <[email protected]>
Signed-off-by: Len Brown <[email protected]>
  • Loading branch information
lenb committed May 29, 2011
1 parent 02c68a0 commit 06ae40c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/x86/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
/*
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 06ae40c

Please sign in to comment.