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:
24fb08d
)
timers/itimer: Avoid direct access to hrtimer clockbase
author
Thomas Weißschuh
<thomas.weissschuh@linutronix.de>
Thu, 21 Aug 2025 13:28:09 +0000
(15:28 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 9 Sep 2025 10:27:17 +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-2-3ae822e5bfbd@linutronix.de
kernel/time/itimer.c
patch
|
blob
|
history
diff --git
a/kernel/time/itimer.c
b/kernel/time/itimer.c
index
876d389
..
7c6110e
100644
(file)
--- a/
kernel/time/itimer.c
+++ b/
kernel/time/itimer.c
@@
-163,8
+163,7
@@
void posixtimer_rearm_itimer(struct task_struct *tsk)
struct hrtimer *tmr = &tsk->signal->real_timer;
if (!hrtimer_is_queued(tmr) && tsk->signal->it_real_incr != 0) {
- hrtimer_forward(tmr, tmr->base->get_time(),
- tsk->signal->it_real_incr);
+ hrtimer_forward_now(tmr, tsk->signal->it_real_incr);
hrtimer_restart(tmr);
}
}