projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93100f6
)
cpus: use first_cpu macro instead of QTAILQ_FIRST(&cpus)
author
Emilio G. Cota
<cota@braap.org>
Mon, 27 Apr 2015 16:45:28 +0000
(12:45 -0400)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Thu, 30 Apr 2015 13:05:48 +0000
(16:05 +0300)
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
cpus.c
patch
|
blob
|
history
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 */