diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2016-10-27 16:09:58 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-10-31 10:24:45 +0100 |
commit | e8faee06f36eefea4df56d8f27f7d0e6cd44d0e8 (patch) | |
tree | 0ea66426b3e89a083ba2f05052b85630bc46cdcf | |
parent | ed2839166c21e001d15868f4d9591a21aaebd547 (diff) | |
download | qemu-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |