From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [PATCH uq/master] kvm: Drop redundant kvm_enabled from cpu_thread_is_idle Date: Wed, 21 Mar 2012 13:36:22 +0100 Message-ID: <4F69CB46.5050107@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm , qemu-devel To: Avi Kivity , Marcelo Tosatti Return-path: Received: from thoth.sbs.de ([192.35.17.2]:20146 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757525Ab2CUMge (ORCPT ); Wed, 21 Mar 2012 08:36:34 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This is now implied by kvm_irqchip_in_kernel. Signed-off-by: Jan Kiszka --- cpus.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index 17b055f..cf732b4 100644 --- a/cpus.c +++ b/cpus.c @@ -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; -- 1.7.3.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAKmJ-0001lo-O5 for qemu-devel@nongnu.org; Wed, 21 Mar 2012 08:36:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAKmE-0000Dd-Cb for qemu-devel@nongnu.org; Wed, 21 Mar 2012 08:36:35 -0400 Received: from thoth.sbs.de ([192.35.17.2]:26298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAKmE-0000D3-2v for qemu-devel@nongnu.org; Wed, 21 Mar 2012 08:36:30 -0400 Message-ID: <4F69CB46.5050107@siemens.com> Date: Wed, 21 Mar 2012 13:36:22 +0100 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH uq/master] kvm: Drop redundant kvm_enabled from cpu_thread_is_idle List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity , Marcelo Tosatti Cc: qemu-devel , kvm This is now implied by kvm_irqchip_in_kernel. Signed-off-by: Jan Kiszka --- cpus.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index 17b055f..cf732b4 100644 --- a/cpus.c +++ b/cpus.c @@ -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; -- 1.7.3.4