X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=hw%2Fptimer.c;h=d81503adc486c58e224d1a0bdbe335d96cad1958;hb=cd346349b45ef056f138a184f660b8c34c3213cc;hp=feabefed9610a42b92dbf108f4c48c452f7d4435;hpb=8d05ea8a33c9d450d2a3079e967c69ea38ec28ba;p=qemu diff --git a/hw/ptimer.c b/hw/ptimer.c index feabefe..d81503a 100644 --- a/hw/ptimer.c +++ b/hw/ptimer.c @@ -1,4 +1,4 @@ -/* +/* * General purpose implementation of a simple periodic countdown timer. * * Copyright (c) 2007 CodeSourcery. @@ -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); }