From patchwork Mon Feb 21 08:43:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 83792 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 231D6B70FD for ; Mon, 21 Feb 2011 20:09:50 +1100 (EST) Received: from localhost ([127.0.0.1]:41987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrRm7-0004Wz-2a for incoming@patchwork.ozlabs.org; Mon, 21 Feb 2011 04:09:47 -0500 Received: from [140.186.70.92] (port=49443 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrRNJ-0004iV-WD for qemu-devel@nongnu.org; Mon, 21 Feb 2011 03:44:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrRNI-0000PB-O2 for qemu-devel@nongnu.org; Mon, 21 Feb 2011 03:44:09 -0500 Received: from mail-ww0-f53.google.com ([74.125.82.53]:49307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrRNI-0000IY-IP for qemu-devel@nongnu.org; Mon, 21 Feb 2011 03:44:08 -0500 Received: by mail-ww0-f53.google.com with SMTP id 18so5370402wwi.10 for ; Mon, 21 Feb 2011 00:44:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:subject:date:message-id:x-mailer :in-reply-to:references; bh=caS8rSslkywnEZaIsW7MFuG2Avg3A22l3zQGibY5ZsA=; b=RizRV7T8ITXTfBvms3lZwJGGuIE+j7g502Bcf54+cRc78zG8n+TffMd1j+JjappHjz 0ter+bsNslnmULeCEi/ZSe1M/rwfkX/1CY5kJ4OISq//ZRH6vcbvI5qM8mzIXrxfM2Ss RSV6n+K1danVxUB5xuUnXPNzBD6/ks0JoxFaA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; b=NDcLA0/fZ5pYOXu8Rh3kqmFafhV57mIbQoatcPDKPSjVCgCr3ylD0I3UTv/E7i731u HUDyWnKWr1/4Uwh57wA42a8gdVdwHw3rVOwQFrcn6hJmfkLscBXgp7Zs/g008dcb+IN4 4vBAigf6p9QPHmxmJ/m7ZgP9MbHvDaUhb1k0A= Received: by 10.227.129.79 with SMTP id n15mr900268wbs.134.1298277848128; Mon, 21 Feb 2011 00:44:08 -0800 (PST) Received: from localhost.localdomain (93-34-149-100.ip50.fastwebnet.it [93.34.149.100]) by mx.google.com with ESMTPS id t5sm1945464wes.9.2011.02.21.00.44.06 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Feb 2011 00:44:07 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 21 Feb 2011 09:43:33 +0100 Message-Id: <1298277820-8817-15-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.3.5 In-Reply-To: <1298277820-8817-1-git-send-email-pbonzini@redhat.com> References: <1298277820-8817-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.53 Subject: [Qemu-devel] [PATCH 14/21] do not use timedwait on qemu_system_cond X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org qemu_main_loop_start is the only place where qemu_system_ready is set to 1. Signed-off-by: Paolo Bonzini --- cpus.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index 868857d..8c147bc 100644 --- a/cpus.c +++ b/cpus.c @@ -823,7 +823,7 @@ static void *qemu_kvm_cpu_thread_fn(void *arg) /* and wait for machine initialization */ while (!qemu_system_ready) { - qemu_cond_timedwait(&qemu_system_cond, &qemu_global_mutex, 100); + qemu_cond_wait(&qemu_system_cond, &qemu_global_mutex); } while (1) { @@ -855,7 +855,7 @@ static void *qemu_tcg_cpu_thread_fn(void *arg) /* and wait for machine initialization */ while (!qemu_system_ready) { - qemu_cond_timedwait(&qemu_system_cond, &qemu_global_mutex, 100); + qemu_cond_wait(&qemu_system_cond, &qemu_global_mutex); } while (1) {