From patchwork Mon Feb 21 08:43:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [14/21] do not use timedwait on qemu_system_cond From: Paolo Bonzini X-Patchwork-Id: 83792 Message-Id: <1298277820-8817-15-git-send-email-pbonzini@redhat.com> To: qemu-devel@nongnu.org Date: Mon, 21 Feb 2011 09:43:33 +0100 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) {