提交 46d13a38 编写于 作者: J Jan Beulich 提交者: Linus Torvalds

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

Use abstractions whenever possible.
Signed-off-by: NJan Beulich <jbeulich@novell.com>
Signed-off-by: NAndi Kleen <ak@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 d2ae5b5f
...@@ -111,7 +111,7 @@ static int crash_nmi_callback(struct pt_regs *regs, int cpu) ...@@ -111,7 +111,7 @@ static int crash_nmi_callback(struct pt_regs *regs, int cpu)
atomic_dec(&waiting_for_crash_ipi); atomic_dec(&waiting_for_crash_ipi);
/* Assume hlt works */ /* Assume hlt works */
for(;;) for(;;)
asm("hlt"); halt();
return 1; return 1;
} }
......
...@@ -460,7 +460,7 @@ static void smp_really_stop_cpu(void *dummy) ...@@ -460,7 +460,7 @@ static void smp_really_stop_cpu(void *dummy)
{ {
smp_stop_cpu(); smp_stop_cpu();
for (;;) for (;;)
asm("hlt"); halt();
} }
void smp_send_stop(void) void smp_send_stop(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册