mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
Leave running timer alone if not reloading.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2923 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
caf8fe8c32
commit
62ea5b0bd3
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload)
|
|||
s->limit = limit;
|
||||
if (reload)
|
||||
s->delta = limit;
|
||||
if (s->enabled) {
|
||||
if (s->enabled && reload) {
|
||||
s->next_event = qemu_get_clock(vm_clock);
|
||||
ptimer_reload(s);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue