Skip to content

Commit e887579

Browse files
t-8chKAGA-KOKO
authored andcommitted
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
1 parent b68b7f3 commit e887579

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/test_objpool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static enum hrtimer_restart ot_hrtimer_handler(struct hrtimer *hrt)
164164
/* do bulk-testings for objects pop/push */
165165
item->worker(item, 1);
166166

167-
hrtimer_forward(hrt, hrt->base->get_time(), item->hrtcycle);
167+
hrtimer_forward_now(hrt, item->hrtcycle);
168168
return HRTIMER_RESTART;
169169
}
170170

0 commit comments

Comments
 (0)