]> Git Repo - qemu.git/commitdiff
cpus: use first_cpu macro instead of QTAILQ_FIRST(&cpus)
authorEmilio G. Cota <[email protected]>
Mon, 27 Apr 2015 16:45:28 +0000 (12:45 -0400)
committerMichael Tokarev <[email protected]>
Thu, 30 Apr 2015 13:05:48 +0000 (16:05 +0300)
Signed-off-by: Emilio G. Cota <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
cpus.c

diff --git a/cpus.c b/cpus.c
index e6dcae31f5ad0c058195399eac5084c2a12874d1..62d157a85c05eedc14aa07137720731857d9d8a6 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -1016,7 +1016,7 @@ static void *qemu_tcg_cpu_thread_fn(void *arg)
     qemu_cond_signal(&qemu_cpu_cond);
 
     /* wait for initial kick-off after machine start */
-    while (QTAILQ_FIRST(&cpus)->stopped) {
+    while (first_cpu->stopped) {
         qemu_cond_wait(tcg_halt_cond, &qemu_global_mutex);
 
         /* process any pending work */
This page took 0.022504 seconds and 4 git commands to generate.