]> git.proxmox.com Git - mirror_qemu.git/commitdiff
cpus-common: always defer async_run_on_cpu work items
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 31 Aug 2016 16:03:39 +0000 (18:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Sep 2016 09:57:30 +0000 (11:57 +0200)
async_run_on_cpu is only called from the I/O thread, not from CPU threads,
so it doesn't make any difference.  It will make a difference however
for async_safe_run_on_cpu.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cpus-common.c

index 7d935fd3dd9f93f9491421c6b50ede8e495bbb8b..115f3d45df606ac4cc411d965ee35f977b547154 100644 (file)
@@ -153,11 +153,6 @@ void async_run_on_cpu(CPUState *cpu, run_on_cpu_func func, void *data)
 {
     struct qemu_work_item *wi;
 
-    if (qemu_cpu_is_self(cpu)) {
-        func(cpu, data);
-        return;
-    }
-
     wi = g_malloc0(sizeof(struct qemu_work_item));
     wi->func = func;
     wi->data = data;