Received: from eggs.gnu.org ([2001:4830:134:3::10]:36212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnKyx-0005lh-3o for qemu-devel@nongnu.org; Fri, 23 Sep 2016 03:33:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnKys-0005oG-Ts for qemu-devel@nongnu.org; Fri, 23 Sep 2016 03:33:14 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnKys-0005o6-OG for qemu-devel@nongnu.org; Fri, 23 Sep 2016 03:33:10 -0400 Received: by mail-wm0-f65.google.com with SMTP id b184so1277093wma.3 for ; Fri, 23 Sep 2016 00:33:10 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 23 Sep 2016 09:31:44 +0200 Message-Id: <1474615909-17069-12-git-send-email-pbonzini@redhat.com> In-Reply-To: <1474615909-17069-1-git-send-email-pbonzini@redhat.com> References: <1474615909-17069-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 11/16] cpus-common: always defer async_run_on_cpu work items List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: cota@braap.org, sergey.fedorov@linaro.org, alex.bennee@linaro.org, serge.fdrv@gmail.com 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 Signed-off-by: Paolo Bonzini --- cpus-common.c | 5 ----- 1 file changed, 5 deletions(-) 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; -- 2.7.4