Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hrtimer: Avoid pointless reprogramming in __hrtimer_start_range_ns()

Much like hrtimer_reprogram(), skip programming if the cpu_base is running
the hrtimer interrupt.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Juri Lelli <juri.lelli@redhat.com>
Reviewed-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260224163429.069535561@kernel.org

+8
+8
kernel/time/hrtimer.c
··· 1269 1269 } 1270 1270 1271 1271 first = enqueue_hrtimer(timer, new_base, mode); 1272 + 1273 + /* 1274 + * If the hrtimer interrupt is running, then it will reevaluate the 1275 + * clock bases and reprogram the clock event device. 1276 + */ 1277 + if (new_base->cpu_base->in_hrtirq) 1278 + return false; 1279 + 1272 1280 if (!force_local) { 1273 1281 /* 1274 1282 * If the current CPU base is online, then the timer is