]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
timers/itimer: Avoid direct access to hrtimer clockbase
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Thu, 21 Aug 2025 13:28:09 +0000 (15:28 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 9 Sep 2025 10:27:17 +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-2-3ae822e5bfbd@linutronix.de
kernel/time/itimer.c

index 876d389b2e219a10c0dbddb6a06dd3252c502e99..7c6110e964e7ecd19ab8c5c9b81f1b113c1ae7bd 100644 (file)
@@ -163,8 +163,7 @@ void posixtimer_rearm_itimer(struct task_struct *tsk)
        struct hrtimer *tmr = &tsk->signal->real_timer;
 
        if (!hrtimer_is_queued(tmr) && tsk->signal->it_real_incr != 0) {
-               hrtimer_forward(tmr, tmr->base->get_time(),
-                               tsk->signal->it_real_incr);
+               hrtimer_forward_now(tmr, tsk->signal->it_real_incr);
                hrtimer_restart(tmr);
        }
 }