From: Emilio G. Cota Date: Mon, 27 Apr 2015 16:45:28 +0000 (-0400) Subject: cpus: use first_cpu macro instead of QTAILQ_FIRST(&cpus) X-Git-Tag: qemu-xen-4.7.0-rc1~328^2~11 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c28e399cadbeaa996e2a3d334368edd4cd6b6889;p=qemu-xen.git cpus: use first_cpu macro instead of QTAILQ_FIRST(&cpus) Signed-off-by: Emilio G. Cota Signed-off-by: Michael Tokarev --- diff --git a/cpus.c b/cpus.c index e6dcae31f5..62d157a85c 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 */