Skip to content

Commit 5f531fe

Browse files
t-8chKAGA-KOKO
authored andcommitted
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
1 parent 24fb08d commit 5f531fe

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

kernel/time/itimer.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ void posixtimer_rearm_itimer(struct task_struct *tsk)
163163
struct hrtimer *tmr = &tsk->signal->real_timer;
164164

165165
if (!hrtimer_is_queued(tmr) && tsk->signal->it_real_incr != 0) {
166-
hrtimer_forward(tmr, tmr->base->get_time(),
167-
tsk->signal->it_real_incr);
166+
hrtimer_forward_now(tmr, tsk->signal->it_real_incr);
168167
hrtimer_restart(tmr);
169168
}
170169
}

0 commit comments

Comments
 (0)