Re: [PATCH 0/8] hrtimer: Remove hrtimer_clock_base::get_time
From: Peter Zijlstra
Date: Tue Aug 12 2025 - 03:43:54 EST
On Tue, Aug 12, 2025 at 08:08:08AM +0200, Thomas Weißschuh wrote:
> The get_time() callbacks always need to match the bases clockid.
> Instead of maintaining that association twice in hrtimer_bases,
> use a helper.
>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
> ---
> Thomas Weißschuh (8):
> posix-timers: Avoid direct access to hrtimer clockbase
> timers/itimer: Avoid direct access to hrtimer clockbase
> sched/core: Avoid direct access to hrtimer clockbase
> lib: test_objpool: Avoid direct access to hrtimer clockbase
> ALSA: hrtimer: Avoid direct access to hrtimer clockbase
> media: pwm-ir-tx: Avoid direct access to hrtimer clockbase
> hrtimer: Use hrtimer_cb_get_time() helper
> hrtimer: Remove hrtimer_clock_base::get_time
>
> drivers/media/rc/pwm-ir-tx.c | 5 +----
> include/linux/hrtimer.h | 14 +++++---------
> include/linux/hrtimer_defs.h | 2 --
> kernel/sched/core.c | 2 +-
> kernel/time/hrtimer.c | 34 +++++++++++++++++++++++++---------
> kernel/time/itimer.c | 3 +--
> kernel/time/posix-timers.c | 5 ++---
> kernel/time/timer_list.c | 2 --
> lib/test_objpool.c | 2 +-
> scripts/gdb/linux/timerlist.py | 2 --
> sound/core/hrtimer.c | 2 +-
> 11 files changed, 37 insertions(+), 36 deletions(-)
Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>