From mboxrd@z Thu Jan 1 00:00:00 1970 From: Len Brown Subject: [PATCH 3/4] x86, idle: make default_idle() static Date: Fri, 27 Jul 2012 18:42:54 -0400 Message-ID: References: <1343428975-3897-1-git-send-email-lenb@kernel.org> Reply-To: Len Brown Return-path: In-Reply-To: <1343428975-3897-1-git-send-email-lenb@kernel.org> In-Reply-To: <06ed885aac76cc68bd1ca1f32c8dcab7bcca1940.1343428708.git.len.brown@intel.com> References: <06ed885aac76cc68bd1ca1f32c8dcab7bcca1940.1343428708.git.len.brown@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: x86@kernel.org, linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: Len Brown List-Id: linux-pm@vger.kernel.org From: Len Brown 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@kernel.org Signed-off-by: Len Brown --- 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