Received: from eggs.gnu.org ([2001:4830:134:3::10]:39272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymm9l-0003nD-Hg for qemu-devel@nongnu.org; Mon, 27 Apr 2015 12:45:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ymm9h-0001Tf-6H for qemu-devel@nongnu.org; Mon, 27 Apr 2015 12:45:17 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:38852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymm9g-0001T3-V3 for qemu-devel@nongnu.org; Mon, 27 Apr 2015 12:45:13 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 26F7420AF9 for ; Mon, 27 Apr 2015 12:45:12 -0400 (EDT) From: "Emilio G. Cota" Date: Mon, 27 Apr 2015 12:45:28 -0400 Message-Id: <1430153133-30988-2-git-send-email-cota@braap.org> In-Reply-To: <1430153133-30988-1-git-send-email-cota@braap.org> References: <1430153133-30988-1-git-send-email-cota@braap.org> Subject: [Qemu-devel] [PATCH 1/6] cpus: use first_cpu macro instead of QTAILQ_FIRST(&cpus) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Paolo Bonzini Signed-off-by: Emilio G. Cota --- cpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpus.c b/cpus.c index e6dcae3..62d157a 100644 --- a/cpus.c +++ b/cpus.c @@ -1016,7 +1016,7 @@ static void *qemu_tcg_cpu_thread_fn(void *arg) qemu_cond_signal(&qemu_cpu_cond); /* wait for initial kick-off after machine start */ - while (QTAILQ_FIRST(&cpus)->stopped) { + while (first_cpu->stopped) { qemu_cond_wait(tcg_halt_cond, &qemu_global_mutex); /* process any pending work */ -- 1.9.1