From: Avi Kivity Date: Tue, 21 Sep 2010 17:59:44 +0000 (+0200) Subject: KVM: cpu_relax() during spin waiting for reboot X-Git-Tag: v2.6.37-rc1~142^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=624d84cfe63b5afdd087bf5b2075a8a8cac5c83f;p=profile%2Fcommon%2Fkernel-common.git 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 Signed-off-by: Marcelo Tosatti --- 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();