diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-03-12 17:44:01 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-03-13 14:44:22 +0000 |
commit | e009894f088507e245ae6c62aa0761b2afdf1c6b (patch) | |
tree | ab4cf8dc5a53025394a63fd6e2f45c39cd0e7d77 /cpus.c | |
parent | 9705fbb5636fbe36956e6886227e9e871689cf83 (diff) | |
download | qemu-e009894f088507e245ae6c62aa0761b2afdf1c6b.zip qemu-e009894f088507e245ae6c62aa0761b2afdf1c6b.tar.gz qemu-e009894f088507e245ae6c62aa0761b2afdf1c6b.tar.bz2 |
do not use timedwait on qemu_system_cond
qemu_main_loop_start is the only place where qemu_system_ready is set
to 1.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'cpus.c')
-rw-r--r-- | cpus.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |