Re: [Issue] timer callback registered with mod_timer is getting called beforetime
From: Thomas Gleixner
Date: Fri Sep 24 2021 - 08:09:07 EST
On Fri, Sep 24 2021 at 12:23, Maninder Singh wrote:
> As we checekd code if CPU responsible for updating jiffies value(lets
> say CPU0) has interrupts disabled for 60 ms and in mean time other
> CPU(CPU1) registers new timer for (jiffies + x) value. its callback
> will be called before time.
So you run some stuff for 60ms with interrupts disabled and now you are
asking what's wrong?
The answer is simply: Keeping interrupts disabled for 60ms is wrong.
Anything else is just a symptom.