diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-07-29 15:36:43 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2011-09-15 16:39:32 -0300 |
commit | 1354869c380cf4560fa3f0520e914cb5ee380ac8 (patch) | |
tree | da76e4d2063b81905a66a8446d9301bd910ee856 /qemu-timer.c | |
parent | 1bcef683bf840a928d633755031ac572d5fdb851 (diff) | |
download | qemu-1354869c380cf4560fa3f0520e914cb5ee380ac8.tar.gz qemu-1354869c380cf4560fa3f0520e914cb5ee380ac8.tar.bz2 qemu-1354869c380cf4560fa3f0520e914cb5ee380ac8.zip |
Drop the vm_running global variable
Use runstate_is_running() instead, which is introduced by this commit.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qemu-timer.c')
-rw-r--r-- | qemu-timer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qemu-timer.c b/qemu-timer.c index b5827862d9..ad1fc8b871 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -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); } |