summaryrefslogtreecommitdiffstats
path: root/include/trace/events/timer.h
diff options
context:
space:
mode:
authorAnna-Maria Behnsen <anna-maria@linutronix.de>2023-12-01 10:26:25 +0100
committerThomas Gleixner <tglx@linutronix.de>2023-12-20 16:49:38 +0100
commitcbf04a22026100dceeceec67fcbf1973383eb32f (patch)
tree87db19b4b57d69099ffb0cf7bf57703a9255a012 /include/trace/events/timer.h
parenttick/sched: Cleanup confusing variables (diff)
downloadlinux-cbf04a22026100dceeceec67fcbf1973383eb32f.tar.xz
linux-cbf04a22026100dceeceec67fcbf1973383eb32f.zip
tick-sched: Warn when next tick seems to be in the past
When the next tick is in the past, the delta between basemono and the next tick gets negativ. But the next tick should never be in the past. The negative effect of a wrong next tick might be a stop of the tick and timers might expire late. To prevent expensive debugging when changing underlying code, add a WARN_ON_ONCE into this code path. To prevent complete misbehaviour, also reset next_tick to basemono in this case. Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Link: https://lore.kernel.org/r/20231201092654.34614-4-anna-maria@linutronix.de
Diffstat (limited to 'include/trace/events/timer.h')
0 files changed, 0 insertions, 0 deletions