[PATCH] use halt() instead of raw inline assembly

Jan Beulich jbeulich at novell.com
Tue May 23 17:08:21 CEST 2006


Use abstractions whenever possible.

Signed-off-by: Jan Beulich <jbeulich at novell.com>

--- linux-2.6.17-rc4/arch/x86_64/kernel/smp.c	2006-05-16 14:51:15.000000000 +0200
+++ 2.6.17-rc4-x86_64-halt/arch/x86_64/kernel/smp.c	2006-05-23 14:47:43.000000000 +0200
@@ -460,7 +460,7 @@ static void smp_really_stop_cpu(void *du
 {
 	smp_stop_cpu(); 
 	for (;;) 
-		asm("hlt"); 
+		halt();
 } 
 
 void smp_send_stop(void)





More information about the discuss mailing list