提交 624d84cf 编写于 作者: A Avi Kivity

KVM: cpu_relax() during spin waiting for reboot

It doesn't really matter, but if we spin, we should spin in a more relaxed
manner.  This way, if something goes wrong at least it won't contribute to
global warming.
Signed-off-by: NAvi Kivity <avi@redhat.com>
Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
上级 49e9d557
...@@ -2022,7 +2022,7 @@ asmlinkage void kvm_handle_fault_on_reboot(void) ...@@ -2022,7 +2022,7 @@ asmlinkage void kvm_handle_fault_on_reboot(void)
/* spin while reset goes on */ /* spin while reset goes on */
local_irq_enable(); local_irq_enable();
while (true) while (true)
; cpu_relax();
} }
/* Fault while not rebooting. We want the trace. */ /* Fault while not rebooting. We want the trace. */
BUG(); BUG();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册