aboutsummaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorEmilio G. Cota <cota@braap.org>2015-04-27 12:45:28 -0400
committerMichael Tokarev <mjt@tls.msk.ru>2015-04-30 16:05:48 +0300
commitc28e399cadbeaa996e2a3d334368edd4cd6b6889 (patch)
tree48ba5aec4ca4a7907c7bcca08f1698ada93d87c5 /cpus.c
parent93100f67c723f5812d0fa9a026208cf320ef46e6 (diff)
downloadqemu-c28e399cadbeaa996e2a3d334368edd4cd6b6889.zip
qemu-c28e399cadbeaa996e2a3d334368edd4cd6b6889.tar.gz
qemu-c28e399cadbeaa996e2a3d334368edd4cd6b6889.tar.bz2
cpus: use first_cpu macro instead of QTAILQ_FIRST(&cpus)
Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c2
1 files changed, 1 insertions, 1 deletions
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 */