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.

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

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
b68b7f3e 5f531fe9

+1 -1
+1 -1
kernel/sched/core.c
··· 917 917 * doesn't make sense and can cause timer DoS. 918 918 */ 919 919 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); 921 921 922 922 if (rq == this_rq()) 923 923 __hrtick_restart(rq);