From 56b9ead234439317629054fa370c547c652ab09a Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 21 Mar 2012 13:36:22 +0100 Subject: kvm: Drop redundant kvm_enabled from cpu_thread_is_idle This is now implied by kvm_irqchip_in_kernel. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- cpus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index eb22bd5..b182b3d 100644 --- a/cpus.c +++ b/cpus.c @@ -441,8 +441,7 @@ static bool cpu_thread_is_idle(CPUArchState *env) if (env->stopped || !runstate_is_running()) { return true; } - if (!env->halted || qemu_cpu_has_work(env) || - (kvm_enabled() && kvm_irqchip_in_kernel())) { + if (!env->halted || qemu_cpu_has_work(env) || kvm_irqchip_in_kernel()) { return false; } return true; -- cgit v1.1