]> Git Repo - qemu.git/blobdiff - qemu-timer.c
Drop the vm_running global variable
[qemu.git] / qemu-timer.c
index b5827862d9039211b7c7b2a0bd87325d7a8f3d18..ad1fc8b8711c2c3b8c9a353d471f5e259e60dc52 100644 (file)
@@ -230,7 +230,7 @@ static void icount_adjust(void)
     int64_t delta;
     static int64_t last_delta;
     /* If the VM is not running, then do nothing.  */
-    if (!vm_running)
+    if (!runstate_is_running())
         return;
 
     cur_time = cpu_get_clock();
@@ -388,7 +388,7 @@ static void icount_warp_rt(void *opaque)
         return;
     }
 
-    if (vm_running) {
+    if (runstate_is_running()) {
         int64_t clock = qemu_get_clock_ns(rt_clock);
         int64_t warp_delta = clock - vm_clock_warp_start;
         if (use_icount == 1) {
@@ -710,7 +710,7 @@ void qemu_run_all_timers(void)
     }
 
     /* vm time timers */
-    if (vm_running) {
+    if (runstate_is_running()) {
         qemu_run_timers(vm_clock);
     }
 
This page took 0.024833 seconds and 4 git commands to generate.