On Thu, Aug 24 2023 at 10:47, Huacai Chen wrote: > On Thu, Aug 24, 2023 at 6:03 AM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote: >> +unsigned long tick_estimate_stale_jiffies(void) >> +{ >> + ktime_t delta = ktime_get_mono_fast_ns() - READ_ONCE(last_jiffies_update); >> + >> + return delta < 0 ? 0 : div_s64(delta, TICK_NSEC); >> +} >> + >> /* >> * Must be called with interrupts disabled ! >> */ > Thank you for your advice, now the latest proposal is here [1], this > is very similar to your diff, please take a look. Similar by some definition of similar.