Received: from eggs.gnu.org ([2001:4830:134:3::10]:33324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1DLP-00004r-Os for qemu-devel@nongnu.org; Mon, 31 Oct 2016 10:13:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1DLL-0002oT-Kh for qemu-devel@nongnu.org; Mon, 31 Oct 2016 10:13:47 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:35876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1DLL-0002nv-Dy for qemu-devel@nongnu.org; Mon, 31 Oct 2016 10:13:43 -0400 Received: by mail-wm0-x244.google.com with SMTP id c17so18622173wmc.3 for ; Mon, 31 Oct 2016 07:13:43 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 31 Oct 2016 15:13:22 +0100 Message-Id: <1477923215-30323-2-git-send-email-pbonzini@redhat.com> In-Reply-To: <1477923215-30323-1-git-send-email-pbonzini@redhat.com> References: <1477923215-30323-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] [PULL 01/14] cpus: make all_vcpus_paused() return bool 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?= From: Alex Bennée Signed-off-by: Alex Bennée Reviewed-by: Sergey Fedorov Reviewed-by: Richard Henderson Message-Id: <20161027151030.20863-2-alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini --- cpus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpus.c b/cpus.c index cfd5cdc..5324ba3 100644 --- a/cpus.c +++ b/cpus.c @@ -1207,17 +1207,17 @@ void qemu_mutex_unlock_iothread(void) qemu_mutex_unlock(&qemu_global_mutex); } -static int all_vcpus_paused(void) +static bool all_vcpus_paused(void) { CPUState *cpu; CPU_FOREACH(cpu) { if (!cpu->stopped) { - return 0; + return false; } } - return 1; + return true; } void pause_all_vcpus(void) -- 2.7.4