mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
hrtimer: Avoid pointless reprogramming in __hrtimer_start_range_ns()
[ Upstream commitd19ff16c11] 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 Stable-dep-of:f2e388a019("hrtimer: Reduce trace noise in hrtimer_start()") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
16774f7333
commit
ece8be21d8
@@ -1287,6 +1287,14 @@ static int __hrtimer_start_range_ns(struct hrtimer *timer, ktime_t tim,
|
||||
}
|
||||
|
||||
first = enqueue_hrtimer(timer, new_base, mode);
|
||||
|
||||
/*
|
||||
* If the hrtimer interrupt is running, then it will reevaluate the
|
||||
* clock bases and reprogram the clock event device.
|
||||
*/
|
||||
if (new_base->cpu_base->in_hrtirq)
|
||||
return false;
|
||||
|
||||
if (!force_local) {
|
||||
/*
|
||||
* If the current CPU base is online, then the timer is
|
||||
|
||||
Reference in New Issue
Block a user