Message ID | 1474615909-17069-12-git-send-email-pbonzini@redhat.com |
---|---|
State | New |
Headers | show |
On 09/23/2016 12:31 AM, Paolo Bonzini wrote: > 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> > Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> > --- > cpus-common.c | 5 ----- > 1 file changed, 5 deletions(-) Reviewed-by: Richard Henderson <rth@twiddle.net> r~
diff --git a/cpus-common.c b/cpus-common.c index 7d935fd..115f3d4 100644 --- a/cpus-common.c +++ b/cpus-common.c @@ -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;