Revision 98fc5614 hw/ptimer.c

b/hw/ptimer.c
100 100

  
101 101
void ptimer_run(ptimer_state *s, int oneshot)
102 102
{
103
    if (s->enabled) {
104
        return;
105
    }
103 106
    if (s->period == 0) {
104 107
        fprintf(stderr, "Timer with period zero, disabling\n");
105 108
        return;

Also available in: Unified diff