Messages in this thread | | | From | Thomas Gleixner <> | Subject | Re: [Issue] timer callback registered with mod_timer is getting called beforetime | Date | Fri, 24 Sep 2021 14:08:50 +0200 |
| |
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.
Thanks,
tglx
| |