Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46d13a38 authored by Jan Beulich's avatar Jan Beulich Committed by Linus Torvalds
Browse files

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



Use abstractions whenever possible.

Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d2ae5b5f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}
+1 −1
Original line number Diff line number Diff line
@@ -460,7 +460,7 @@ static void smp_really_stop_cpu(void *dummy)
{
	smp_stop_cpu(); 
	for (;;) 
		asm("hlt"); 
		halt();
} 

void smp_send_stop(void)