diff options
author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2025-08-21 15:28:11 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2025-09-09 12:27:18 +0200 |
commit | e8875795160b484f691938ce07a381e77821f947 (patch) | |
tree | d8b3a22d3d8e785cc3f54e4b5fcdef3435a0ea87 /lib/test_objpool.c | |
parent | b68b7f3e9b50747b88ba211080d27310430c928b (diff) |
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
Diffstat (limited to 'lib/test_objpool.c')
-rw-r--r-- | lib/test_objpool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_objpool.c b/lib/test_objpool.c index 8f688187fa87..6a34a7582fdb 100644 --- a/lib/test_objpool.c +++ b/lib/test_objpool.c @@ -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; } |