Received: from eggs.gnu.org ([2001:4830:134:3::10]:35846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjPBx-0002KM-0i for qemu-devel@nongnu.org; Mon, 12 Sep 2016 07:14:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjPBw-0007nP-4e for qemu-devel@nongnu.org; Mon, 12 Sep 2016 07:14:24 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33527) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjPBv-0007fl-V0 for qemu-devel@nongnu.org; Mon, 12 Sep 2016 07:14:24 -0400 Received: by mail-wm0-f67.google.com with SMTP id b187so13087976wme.0 for ; Mon, 12 Sep 2016 04:14:02 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 12 Sep 2016 13:12:36 +0200 Message-Id: <1473678761-8885-12-git-send-email-pbonzini@redhat.com> In-Reply-To: <1473678761-8885-1-git-send-email-pbonzini@redhat.com> References: <1473678761-8885-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: sergey.fedorov@linaro.org, alex.bennee@linaro.org 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 1a32522..09b19f8 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