aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-09-21 13:59:44 -0400
committerAvi Kivity <avi@redhat.com>2010-10-24 04:53:03 -0400
commit624d84cfe63b5afdd087bf5b2075a8a8cac5c83f (patch)
tree49b3e2ac87797d2fe852251570e7e2b5e3765db8 /virt
parent49e9d557f9b6e9639390b63b645f2def8dde5f1b (diff)
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: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index c7a57b4feb39..b8499f544e1d 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -2022,7 +2022,7 @@ asmlinkage void kvm_handle_fault_on_reboot(void)
2022 /* spin while reset goes on */ 2022 /* spin while reset goes on */
2023 local_irq_enable(); 2023 local_irq_enable();
2024 while (true) 2024 while (true)
2025 ; 2025 cpu_relax();
2026 } 2026 }
2027 /* Fault while not rebooting. We want the trace. */ 2027 /* Fault while not rebooting. We want the trace. */
2028 BUG(); 2028 BUG();