projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b68b7f3
)
lib: test_objpool: Avoid direct access to hrtimer clockbase
author
Thomas Weißschuh
<thomas.weissschuh@linutronix.de>
Thu, 21 Aug 2025 13:28:11 +0000
(15:28 +0200)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/lib/test_objpool.c
b/lib/test_objpool.c
index
8f68818
..
6a34a75
100644
(file)
--- 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;
}