From c28e399cadbeaa996e2a3d334368edd4cd6b6889 Mon Sep 17 00:00:00 2001 From: "Emilio G. Cota" Date: Mon, 27 Apr 2015 12:45:28 -0400 Subject: cpus: use first_cpu macro instead of QTAILQ_FIRST(&cpus) Signed-off-by: Emilio G. Cota Signed-off-by: Michael Tokarev --- cpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpus.c b/cpus.c index e6dcae3..62d157a 100644 --- 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 */ -- cgit v1.1