Skip to contentSkip to conversation

x86: reduce force_mwait visibility

PATCH In review Jan Beulich 2 participants 2 messages Jul 18, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: reduce force_mwait visibility

It's not used anywhere outside its single referencing file.

---
 arch/x86/kernel/cpu/amd.c   |    2 --
 arch/x86/kernel/process.c   |    2 ++
 include/asm-x86/processor.h |    2 --
 3 files changed, 2 insertions(+), 4 deletions(-)
arch/x86/kernel/cpu/amd.c +0 -2
@@ -61,8 +61,6 @@ static __cpuinit int amd_apic_timer_brok
 }
 #endif
 
-int force_mwait __cpuinitdata;
-
 static void __cpuinit early_init_amd(struct cpuinfo_x86 *c)
 {
 	if (cpuid_eax(0x80000000) >= 0x80000007) {
arch/x86/kernel/process.c +2 -0
@@ -122,6 +122,8 @@ static void poll_idle(void)
  *
  * idle=mwait overrides this decision and forces the usage of mwait.
  */
+static int __cpuinitdata force_mwait;
+
 static int __cpuinit mwait_usable(const struct cpuinfo_x86 *c)
 {
 	if (force_mwait)
include/asm-x86/processor.h +0 -2
@@ -727,8 +727,6 @@ static inline void __sti_mwait(unsigned 
 
 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;