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.

lib: test_objpool: 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-4-3ae822e5bfbd@linutronix.de

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
e8875795 b68b7f3e

+1 -1
+1 -1
lib/test_objpool.c
··· 164 164 /* do bulk-testings for objects pop/push */ 165 165 item->worker(item, 1); 166 166 167 - hrtimer_forward(hrt, hrt->base->get_time(), item->hrtcycle); 167 + hrtimer_forward_now(hrt, item->hrtcycle); 168 168 return HRTIMER_RESTART; 169 169 } 170 170