From: Len Brown <len.brown@xxxxxxxxx> default_idle() was public and exported to modules for the benefit of APM. But APM no longer touches default_idle(), so default_idle() can now be private. Cc: x86@xxxxxxxxxx Signed-off-by: Len Brown <len.brown@xxxxxxxxx> --- arch/x86/include/asm/processor.h | 1 - arch/x86/kernel/process.c | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index 39bc577..b02e48c 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -979,7 +979,6 @@ extern bool cpu_has_amd_erratum(const int *); extern unsigned long arch_align_stack(unsigned long sp); extern void free_init_pages(char *what, unsigned long begin, unsigned long end); -void default_idle(void); bool set_pm_idle_to_default(void); void stop_this_cpu(void *dummy); diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index 735279e..165f870 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c @@ -479,7 +479,7 @@ void cpu_idle(void) * We use this if we don't have any better * idle routine.. */ -void default_idle(void) +static void default_idle(void) { if (hlt_use_halt()) { trace_power_start_rcuidle(POWER_CSTATE, 1, smp_processor_id()); @@ -504,9 +504,6 @@ void default_idle(void) cpu_relax(); } } -#ifdef CONFIG_APM_MODULE -EXPORT_SYMBOL(default_idle); -#endif bool set_pm_idle_to_default(void) { -- 1.7.12.rc0