Received: from eggs.gnu.org ([2001:4830:134:3::10]:44085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boWA8-0006Gm-03 for qemu-devel@nongnu.org; Mon, 26 Sep 2016 09:41:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boWA7-0004uV-5C for qemu-devel@nongnu.org; Mon, 26 Sep 2016 09:41:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boWA6-0004uL-Ui for qemu-devel@nongnu.org; Mon, 26 Sep 2016 09:41:39 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 70CE3C05A290 for ; Mon, 26 Sep 2016 13:41:38 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-31.ams2.redhat.com [10.36.112.31]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u8QDexeA009350 for ; Mon, 26 Sep 2016 09:41:37 -0400 From: Paolo Bonzini Date: Mon, 26 Sep 2016 15:40:50 +0200 Message-Id: <1474897258-1205-21-git-send-email-pbonzini@redhat.com> In-Reply-To: <1474897258-1205-1-git-send-email-pbonzini@redhat.com> References: <1474897258-1205-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 20/28] 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 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=C3=A9e Reviewed-by: Richard Henderson 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; =20 - if (qemu_cpu_is_self(cpu)) { - func(cpu, data); - return; - } - wi =3D g_malloc0(sizeof(struct qemu_work_item)); wi->func =3D func; wi->data =3D data; --=20 2.7.4