Received: from eggs.gnu.org ([2001:4830:134:3::10]:41413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfP7M-00076X-CW for qemu-devel@nongnu.org; Thu, 01 Sep 2016 06:21:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfP7C-0003V9-Bk for qemu-devel@nongnu.org; Thu, 01 Sep 2016 06:21:07 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:33401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfP7C-0003Uu-5H for qemu-devel@nongnu.org; Thu, 01 Sep 2016 06:20:58 -0400 Received: by mail-wm0-x242.google.com with SMTP id w207so7697698wmw.0 for ; Thu, 01 Sep 2016 03:20:58 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 1 Sep 2016 12:20:24 +0200 Message-Id: <1472725227-10374-10-git-send-email-pbonzini@redhat.com> In-Reply-To: <1472725227-10374-1-git-send-email-pbonzini@redhat.com> References: <1472725227-10374-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 09/12] 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: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Sergey Fedorov , Sergey Fedorov , "Emilio G. Cota" 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. 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 47f7c06..59c8dc8 100644 --- a/cpus-common.c +++ b/cpus-common.c @@ -136,11 +136,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