@@ -306,22 +306,17 @@ u64 irq_timings_next_event(u64 now)
continue;
if (irqs->next_evt <= now) {
- irq = i;
- next_evt = now;
-
/*
- * This interrupt mustn't use in the future
- * until new events occur and update the
- * statistics.
+ * If the last prediction was in the past, mark the IRQ
+ * as invalid until a next interrupt updates the
+ * prediction.
*/
irqs->valid = 0;
- break;
+ continue;
}
- if (irqs->next_evt < next_evt) {
- irq = i;
+ if (irqs->next_evt < next_evt)
next_evt = irqs->next_evt;
- }
}
return next_evt;