From: David Hildenbrand Date: Tue, 13 May 2014 14:54:32 +0000 (+0200) Subject: KVM: s390: cleanup handle_wait by reusing kvm_vcpu_block X-Git-Tag: omap-for-v3.17/fixes-against-rc2~184^2~10^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0759d0681cae279e77ebb4b76175e330360b01d9;p=pandora-kernel.git KVM: s390: cleanup handle_wait by reusing kvm_vcpu_block This patch cleans up the code in handle_wait by reusing the common code function kvm_vcpu_block. signal_pending(), kvm_cpu_has_pending_timer() and kvm_arch_vcpu_runnable() are sufficient for checking if we need to wake-up that VCPU. kvm_vcpu_block uses these functions, so no checks are lost. The flag "timer_due" can be removed - kvm_cpu_has_pending_timer() tests whether the timer is pending, thus the vcpu is correctly woken up. Signed-off-by: David Hildenbrand Acked-by: Christian Borntraeger Acked-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- Reading git-diff-tree failed