aboutsummaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-05-03 02:13:22 +0200
committerAndreas Färber <afaerber@suse.de>2012-10-31 01:02:45 +0100
commit6d45b109a6869084abd0f9aba01fa5107e926b60 (patch)
tree8b75ff67c54144e27e07382ff4137de007a3c6ea /cpus.c
parentc64ca8140e9c21cd0d44c10fbe1247cb4ade8e6e (diff)
cpus: Pass CPUState to flush_queued_work()
CPUArchState is no longer needed there. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpus.c b/cpus.c
index 307c1f286c..e40823c6f1 100644
--- a/cpus.c
+++ b/cpus.c
@@ -670,9 +670,8 @@ void run_on_cpu(CPUArchState *env, void (*func)(void *data), void *data)
}
}
-static void flush_queued_work(CPUArchState *env)
+static void flush_queued_work(CPUState *cpu)
{
- CPUState *cpu = ENV_GET_CPU(env);
struct qemu_work_item *wi;
if (cpu->queued_work_first == NULL) {
@@ -697,7 +696,7 @@ static void qemu_wait_io_event_common(CPUArchState *env)
cpu->stopped = true;
qemu_cond_signal(&qemu_pause_cond);
}
- flush_queued_work(env);
+ flush_queued_work(cpu);
cpu->thread_kicked = false;
}