From patchwork Mon Feb 28 09:10:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 594751 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 p1S9BPdY007046 for ; Mon, 28 Feb 2011 09:11:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753048Ab1B1JLU (ORCPT ); Mon, 28 Feb 2011 04:11:20 -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 S1753039Ab1B1JLO (ORCPT ); Mon, 28 Feb 2011 04:11:14 -0500 Received: by mail-yw0-f46.google.com with SMTP id 3so1169590ywj.19 for ; Mon, 28 Feb 2011 01:11:14 -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=pJO/NB0rcy496whrUWitq6R61uwx0/ZfXn4KtY0z5JI=; b=mn1e4Ac8dQDTO7kUM4rit4Muuo4Finh2ABSfJhkZMxL+TKd7+PkhoV2FMCQmlVXLg6 cDq8M7jl39cbZQ66wSDX/T4NnDa0Mlwu7OOW+GLkUURM6rN31ZODDv8XSewGFxjmeOkW dA6EKuznFssJ+b5SzRSu98wlq2xXKU7r38nEw= 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=BHUwHji4f6uwOAgoU0lt/XEL3h3inSrBMgJrksBUQqEnKPDcuqxV7sWJCjPPWMwmuS JB+HEYfilRI9Qx6SEL/aH6E5KKfreU9VxfwFfDyANadKKGRJsn4pq4Hy0tCHAtlJG+6x KbAZyScvai+0Br9yXpROyPNu1cC9RiILsuRsg= Received: by 10.236.103.145 with SMTP id f17mr9253363yhg.12.1298884273958; Mon, 28 Feb 2011 01:11:13 -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.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Feb 2011 01:11:13 -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 15/22] do not use timedwait on qemu_system_cond Date: Mon, 28 Feb 2011 10:10:17 +0100 Message-Id: <1298884224-19734-16-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:25 +0000 (UTC) diff --git a/cpus.c b/cpus.c index 4c3837f..e367b3b 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) {