Re: [PATCH -next] genirq/timings: Use time_after_eq() macro

From: Thomas Gleixner
Date: Sun Sep 08 2024 - 10:06:35 EST


On Mon, Sep 02 2024 at 10:57, Jinjie Ruan wrote:
> @@ -383,7 +383,7 @@ static u64 __irq_timings_next_event(struct irqt_stat *irqs, int irq, u64 now)
> {
> int index, i, period_max, count, start, min = INT_MAX;
>
> - if ((now - irqs->last_ts) >= NSEC_PER_SEC) {
> + if (time_after_eq(now, irqs->last_ts + NSEC_PER_SEC)) {

time_after_eq() is meant for handling jiffies and not for arbitraty time
stamps which have nothing to do with jiffies at all

Thanks,

tglx