From: Paolo Bonzini 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> References: <1298884224-19734-1-git-send-email-pbonzini@redhat.com> Cc: kvm@vger.kernel.org, aurelien@aurel32.net, blauwirbel@gmail.com, jan.kiszka@siemes.com, mtosatti@redhat.com To: qemu-devel@nongnu.org Return-path: 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) In-Reply-To: <1298884224-19734-1-git-send-email-pbonzini@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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 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) { -- 1.7.4