[PATCH] x86_64: use halt() instead of raw inline assembly
authorJan Beulich <jbeulich@novell.com>
Mon, 26 Jun 2006 11:57:59 +0000 (13:57 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 17:48:18 +0000 (10:48 -0700)
Use abstractions whenever possible.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/crash.c
arch/x86_64/kernel/smp.c

index 4e6c3b729e39793b39c0bcaed3a10e0e1832b0ec..ec1c7431d5af91074f2640564a0d4b0e6a624783 100644 (file)
@@ -111,7 +111,7 @@ static int crash_nmi_callback(struct pt_regs *regs, int cpu)
        atomic_dec(&waiting_for_crash_ipi);
        /* Assume hlt works */
        for(;;)
-               asm("hlt");
+               halt();
 
        return 1;
 }
index 4a6628b14d9923149d2d570b5865c36e07f229f2..fe906ba1cf450ebdaa42ed1093acfa3fa5fde78a 100644 (file)
@@ -460,7 +460,7 @@ static void smp_really_stop_cpu(void *dummy)
 {
        smp_stop_cpu(); 
        for (;;) 
-               asm("hlt"); 
+               halt();
 } 
 
 void smp_send_stop(void)