[PATCH] x86_64: Fix VSMP build

Patch fixes a build problem with CONFIG_X86_VSMP. The vSMP bits probably

gathered some fuzz on its way to mainline, and safe_halt() which was outside
the #endif (CONFIG_X86_VSMP) somehow got inside the !CONFIG_X86_VSMP condition,
hence being undefined and breaking CONFIG_X86_VSMP builds. Patch takes
safe_halt() and halt() macros out of the #endif

Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Ravikiran G Thirumalai and committed by Linus Torvalds 2ddb55f0 c09b4240

+5 -5
+5 -5
include/asm-x86_64/system.h
··· 354 #define local_irq_disable() __asm__ __volatile__("cli": : :"memory") 355 #define local_irq_enable() __asm__ __volatile__("sti": : :"memory") 356 357 - /* used in the idle loop; sti takes one instruction cycle to complete */ 358 - #define safe_halt() __asm__ __volatile__("sti; hlt": : :"memory") 359 - /* used when interrupts are already enabled or to shutdown the processor */ 360 - #define halt() __asm__ __volatile__("hlt": : :"memory") 361 - 362 #define irqs_disabled() \ 363 ({ \ 364 unsigned long flags; \ ··· 364 /* For spinlocks etc */ 365 #define local_irq_save(x) do { warn_if_not_ulong(x); __asm__ __volatile__("# local_irq_save \n\t pushfq ; popq %0 ; cli":"=g" (x): /* no input */ :"memory"); } while (0) 366 #endif 367 368 void cpu_idle_wait(void); 369
··· 354 #define local_irq_disable() __asm__ __volatile__("cli": : :"memory") 355 #define local_irq_enable() __asm__ __volatile__("sti": : :"memory") 356 357 #define irqs_disabled() \ 358 ({ \ 359 unsigned long flags; \ ··· 369 /* For spinlocks etc */ 370 #define local_irq_save(x) do { warn_if_not_ulong(x); __asm__ __volatile__("# local_irq_save \n\t pushfq ; popq %0 ; cli":"=g" (x): /* no input */ :"memory"); } while (0) 371 #endif 372 + 373 + /* used in the idle loop; sti takes one instruction cycle to complete */ 374 + #define safe_halt() __asm__ __volatile__("sti; hlt": : :"memory") 375 + /* used when interrupts are already enabled or to shutdown the processor */ 376 + #define halt() __asm__ __volatile__("hlt": : :"memory") 377 378 void cpu_idle_wait(void); 379