From: Paolo Bonzini Date: Wed, 31 Aug 2016 16:03:39 +0000 (+0200) Subject: cpus-common: always defer async_run_on_cpu work items X-Git-Tag: TizenStudio_2.0_p2.3.2~9^2~14^2~5^2~152^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c978b3168727d3a76ffcb18462ea972f50b53634;p=sdk%2Femulator%2Fqemu.git cpus-common: always defer async_run_on_cpu work items 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 Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- 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;