qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-trivial] [PATCH 1/6] cpus: use first_cpu macro instead of QTAILQ_F


From: Emilio G. Cota
Subject: [Qemu-trivial] [PATCH 1/6] cpus: use first_cpu macro instead of QTAILQ_FIRST(&cpus)
Date: Mon, 27 Apr 2015 12:45:28 -0400

Signed-off-by: Emilio G. Cota <address@hidden>
---
 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 */
-- 
1.9.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]