Message ID | 20191024122425.2483-4-philmd@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | mc146818rtc: fix timer interrupt reinjection | expand |
diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c index 8da7fd1a50..adbc3b9d57 100644 --- a/hw/timer/mc146818rtc.c +++ b/hw/timer/mc146818rtc.c @@ -224,7 +224,6 @@ periodic_timer_update(RTCState *s, int64_t current_time, uint32_t old_period) last_periodic_clock = next_periodic_clock - old_period; lost_clock = cur_clock - last_periodic_clock; assert(lost_clock >= 0); - } /* * s->irq_coalesced can change for two reasons: @@ -261,6 +260,7 @@ periodic_timer_update(RTCState *s, int64_t current_time, uint32_t old_period) */ lost_clock = MIN(lost_clock, period); } + } assert(lost_clock >= 0 && lost_clock <= period);