Skip to contentSkip to conversation

kvm: Drop redundant kvm_enabled from cpu_thread_is_idle

PATCH Applied Jan Kiszka 2 participants 2 messages Mar 21, 2012 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 kvm: Drop redundant kvm_enabled from cpu_thread_is_idle

This is now implied by kvm_irqchip_in_kernel.

---
 cpus.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
cpus.c +1 -2
index 17b055f..cf732b4 100644
@@ -421,8 +421,7 @@ static bool cpu_thread_is_idle(CPUState *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;
Signature · 1 line
1.7.3.4
Applied
#1 lore raw
Quoted 3 lines · Jan Kiszka

This is now implied by kvm_irqchip_in_kernel.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function