Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
5f531fe9 24fb08dc

+1 -2
+1 -2
kernel/time/itimer.c
··· 163 163 struct hrtimer *tmr = &tsk->signal->real_timer; 164 164 165 165 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); 168 167 hrtimer_restart(tmr); 169 168 } 170 169 }