summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2016-10-27 16:09:58 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-10-31 10:24:45 +0100
commite8faee06f36eefea4df56d8f27f7d0e6cd44d0e8 (patch)
tree0ea66426b3e89a083ba2f05052b85630bc46cdcf
parented2839166c21e001d15868f4d9591a21aaebd547 (diff)
downloadqemu-e8faee06f36eefea4df56d8f27f7d0e6cd44d0e8.zip
cpus: make all_vcpus_paused() return bool
Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Sergey Fedorov <sergey.fedorov@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net> Message-Id: <20161027151030.20863-2-alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--cpus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpus.c b/cpus.c
index cfd5cdc0e3..5324ba3ae0 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)