From patchwork Mon Feb 28 09:10:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 594841 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1S9Brqv007387 for ; Mon, 28 Feb 2011 09:11:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753090Ab1B1JLr (ORCPT ); Mon, 28 Feb 2011 04:11:47 -0500 Received: from mail-yw0-f46.google.com ([209.85.213.46]:43409 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753049Ab1B1JLM (ORCPT ); Mon, 28 Feb 2011 04:11:12 -0500 Received: by mail-yw0-f46.google.com with SMTP id 3so1169590ywj.19 for ; Mon, 28 Feb 2011 01:11:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:date:message-id :x-mailer:in-reply-to:references; bh=I0CGGR2ZN3RX42Vi/7/gpfGJm9B6sYDIgoggB0Ke478=; b=A1fror1k5g2uOUSA0766KZj0HGH71fxvzzi8HM2jT+3Qhu9eRqCDnOszE3w79qFEty v8MNh1nSzHqbwNI+f/oSxegA61at9SW+gDofOQeeXvgquFo4b7jq139oMxze3UrfDxNa LcwS7Vgbvf1NC6se5ZIenKJZ+blgdJM23pjpA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=O9uLuEQRZ+7AHSB1TICliOCj+wr060AjqcQlq84bKq/PUnytqZjKtQ+84C6o6Eh/h8 JW23rz2d47VW27+h11rKltNJFIIfIe6iA6fjHWXuBlqQElGilvfqah1RC7hpqDyUYDC9 vD/SVCuIYbUg2CVWHx9jnU5eG8nHTJuksLHYA= Received: by 10.236.116.131 with SMTP id g3mr1162843yhh.10.1298884271921; Mon, 28 Feb 2011 01:11:11 -0800 (PST) Received: from localhost.localdomain (93-34-149-100.ip50.fastwebnet.it [93.34.149.100]) by mx.google.com with ESMTPS id 1sm2037209yhl.11.2011.02.28.01.11.09 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Feb 2011 01:11:10 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, aurelien@aurel32.net, blauwirbel@gmail.com, jan.kiszka@siemes.com, mtosatti@redhat.com Subject: [PATCH v3 uq/master 14/22] do not use timedwait on qemu_halt_cond Date: Mon, 28 Feb 2011 10:10:16 +0100 Message-Id: <1298884224-19734-15-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.4 In-Reply-To: <1298884224-19734-1-git-send-email-pbonzini@redhat.com> References: <1298884224-19734-1-git-send-email-pbonzini@redhat.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 28 Feb 2011 09:11:53 +0000 (UTC) diff --git a/cpus.c b/cpus.c index 6cfb45b..4c3837f 100644 --- a/cpus.c +++ b/cpus.c @@ -771,7 +771,7 @@ static void qemu_tcg_wait_io_event(void) CPUState *env; while (all_cpu_threads_idle()) { - qemu_cond_timedwait(tcg_halt_cond, &qemu_global_mutex, 1000); + qemu_cond_wait(tcg_halt_cond, &qemu_global_mutex); } qemu_mutex_unlock(&qemu_global_mutex); @@ -794,7 +794,7 @@ static void qemu_tcg_wait_io_event(void) static void qemu_kvm_wait_io_event(CPUState *env) { while (cpu_thread_is_idle(env)) { - qemu_cond_timedwait(env->halt_cond, &qemu_global_mutex, 1000); + qemu_cond_wait(env->halt_cond, &qemu_global_mutex); } qemu_kvm_eat_signals(env);