]> Git Repo - qemu.git/commitdiff
cpus: make all_vcpus_paused() return bool
authorAlex Bennée <[email protected]>
Thu, 27 Oct 2016 15:09:58 +0000 (16:09 +0100)
committerPaolo Bonzini <[email protected]>
Mon, 31 Oct 2016 09:24:45 +0000 (10:24 +0100)
Signed-off-by: Alex Bennée <[email protected]>
Reviewed-by: Sergey Fedorov <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <20161027151030[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
cpus.c

diff --git a/cpus.c b/cpus.c
index cfd5cdc0e34d072207e06b1bc6e8ccc4217d3e00..5324ba3ae0fbfebd157bec2eb1f6bdda438c7b75 100644 (file)
--- 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)
This page took 0.027502 seconds and 4 git commands to generate.