x86: reduce force_mwait visibility
authorJan Beulich <jbeulich@novell.com>
Fri, 18 Jul 2008 12:45:20 +0000 (13:45 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 18 Jul 2008 22:55:09 +0000 (15:55 -0700)
It's not used anywhere outside its single referencing file.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/process.c
include/asm-x86/processor.h

index 81a07ca65d4487d7f3133619210d287238ac411c..cae9cabc3031f1e3a2a3d6f8085d20b557026ac3 100644 (file)
@@ -24,8 +24,6 @@
 extern void vide(void);
 __asm__(".align 4\nvide: ret");
 
-int force_mwait __cpuinitdata;
-
 static void __cpuinit early_init_amd(struct cpuinfo_x86 *c)
 {
        if (cpuid_eax(0x80000000) >= 0x80000007) {
index 158bd6a16f6ab79aee5d918f93698aed2805a937..9f94bb1c81170f8b047aaf7782291e13919fc15a 100644 (file)
@@ -199,6 +199,7 @@ static void poll_idle(void)
  *
  * idle=mwait overrides this decision and forces the usage of mwait.
  */
+static int __cpuinitdata force_mwait;
 
 #define MWAIT_INFO                     0x05
 #define MWAIT_ECX_EXTENDED_INFO                0x01
index 55402d2ab9380e3f621c889503af1cec0abd9851..15cb82a44e89197c294e1ad59b07f1a8978c4e1d 100644 (file)
@@ -722,8 +722,6 @@ static inline void __sti_mwait(unsigned long eax, unsigned long ecx)
 
 extern void mwait_idle_with_hints(unsigned long eax, unsigned long ecx);
 
-extern int                     force_mwait;
-
 extern void select_idle_routine(const struct cpuinfo_x86 *c);
 
 extern unsigned long           boot_option_idle_override;