]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
sched/core: Avoid direct access to hrtimer clockbase
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Thu, 21 Aug 2025 13:28:10 +0000 (15:28 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 9 Sep 2025 10:27:18 +0000 (12:27 +0200)
The field timer->base->get_time is a private implementation detail and
should not be accessed outside of the hrtimer core.

Switch to the equivalent helper.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/all/20250821-hrtimer-cleanup-get_time-v2-3-3ae822e5bfbd@linutronix.de
kernel/sched/core.c

index be00629f0ba4cc5832189c0052b0b632deb4ea2e..4dc12838ad4fdf086b3f3f1168072d6301f51aa3 100644 (file)
@@ -917,7 +917,7 @@ void hrtick_start(struct rq *rq, u64 delay)
         * doesn't make sense and can cause timer DoS.
         */
        delta = max_t(s64, delay, 10000LL);
-       rq->hrtick_time = ktime_add_ns(timer->base->get_time(), delta);
+       rq->hrtick_time = ktime_add_ns(hrtimer_cb_get_time(timer), delta);
 
        if (rq == this_rq())
                __hrtick_restart(rq);