diff options
author | Avi Kivity <avi@redhat.com> | 2010-09-21 17:59:44 (GMT) |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 08:53:03 (GMT) |
commit | 624d84cfe63b5afdd087bf5b2075a8a8cac5c83f (patch) | |
tree | 49b3e2ac87797d2fe852251570e7e2b5e3765db8 /virt | |
parent | 49e9d557f9b6e9639390b63b645f2def8dde5f1b (diff) | |
download | linux-fsl-qoriq-624d84cfe63b5afdd087bf5b2075a8a8cac5c83f.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index c7a57b4..b8499f5 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) /* spin while reset goes on */ local_irq_enable(); while (true) - ; + cpu_relax(); } /* Fault while not rebooting. We want the trace. */ BUG(); |