timers/itimer: Avoid direct access to hrtimer clockbase

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
This commit is contained in:
Thomas Weißschuh 2025-08-21 15:28:09 +02:00 committed by Thomas Gleixner
parent 24fb08dcc4
commit 5f531fe9cb
1 changed files with 1 additions and 2 deletions

View File

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