From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=57691 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pmspc-00015l-32 for qemu-devel@nongnu.org; Tue, 08 Feb 2011 14:02:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pmspb-0006BO-AV for qemu-devel@nongnu.org; Tue, 08 Feb 2011 14:02:32 -0500 Received: from mail-yw0-f45.google.com ([209.85.213.45]:55445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmrDM-0000y0-CV for qemu-devel@nongnu.org; Tue, 08 Feb 2011 12:18:56 -0500 Received: by mail-yw0-f45.google.com with SMTP id 8so2635470ywa.4 for ; Tue, 08 Feb 2011 09:18:56 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 8 Feb 2011 18:18:26 +0100 Message-Id: <1297185509-20996-10-git-send-email-pbonzini@redhat.com> In-Reply-To: <1297185509-20996-1-git-send-email-pbonzini@redhat.com> References: <1297185509-20996-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [CFT PATCH 09/12] do not use timedwait on qemu_system_cond List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org qemu_main_loop_start is the only place where qemu_system_ready is set to 1, and it signals qemu_system_cond. Signed-off-by: Paolo Bonzini --- cpus.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index be3d82d..3d12c50 100644 --- a/cpus.c +++ b/cpus.c @@ -798,7 +798,7 @@ static void *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) { if (cpu_can_run(env)) @@ -824,7 +824,7 @@ static void *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) { cpu_exec_all(); -- 1.7.3.5