From c978b3168727d3a76ffcb18462ea972f50b53634 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 31 Aug 2016 18:03:39 +0200 Subject: cpus-common: always defer async_run_on_cpu work items MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- cpus-common.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'cpus-common.c') diff --git a/cpus-common.c b/cpus-common.c index 7d935fd3dd..115f3d45df 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; -- cgit v1.2.3