Skip to content

Commit b68b7f3

Browse files
t-8chKAGA-KOKO
authored andcommitted
sched/core: 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-3-3ae822e5bfbd@linutronix.de
1 parent 5f531fe commit b68b7f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/sched/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ void hrtick_start(struct rq *rq, u64 delay)
917917
* doesn't make sense and can cause timer DoS.
918918
*/
919919
delta = max_t(s64, delay, 10000LL);
920-
rq->hrtick_time = ktime_add_ns(timer->base->get_time(), delta);
920+
rq->hrtick_time = ktime_add_ns(hrtimer_cb_get_time(timer), delta);
921921

922922
if (rq == this_rq())
923923
__hrtick_restart(rq);

0 commit comments

Comments
 (0)