lib: test_objpool: Avoid direct access to hrtimer clockbase
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Thu, 21 Aug 2025 13:28:11 +0000 (15:28 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 9 Sep 2025 10:27:18 +0000 (12:27 +0200)
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
lib/test_objpool.c

index 8f68818..6a34a75 100644 (file)
@@ -164,7 +164,7 @@ static enum hrtimer_restart ot_hrtimer_handler(struct hrtimer *hrt)
        /* do bulk-testings for objects pop/push */
        item->worker(item, 1);
 
-       hrtimer_forward(hrt, hrt->base->get_time(), item->hrtcycle);
+       hrtimer_forward_now(hrt, item->hrtcycle);
        return HRTIMER_RESTART;
 }