[PATCH v2 0/9] hrtimer: Remove hrtimer_clock_base::get_time

Thomas Weißschuh posted 9 patches 1 month, 1 week ago
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          | 38 +++++++++++++++++++++++++++-----------
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, 39 insertions(+), 38 deletions(-)
[PATCH v2 0/9] hrtimer: Remove hrtimer_clock_base::get_time
Posted by Thomas Weißschuh 1 month, 1 week ago
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@linutronix.de>
---
Changes in v2:
- Pick up tags from the mailing list
- Reorder switch-case branches to match hrtimer_bases table
- Link to v1: https://lore.kernel.org/r/20250812-hrtimer-cleanup-get_time-v1-0-b962cd9d9385@linutronix.de

---
Thomas Weißschuh (9):
      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
      hrtimer: Reorder branches in hrtimer_clockid_to_base()

 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          | 38 +++++++++++++++++++++++++++-----------
 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, 39 insertions(+), 38 deletions(-)
---
base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
change-id: 20250728-hrtimer-cleanup-get_time-8ac9d797a685

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh@linutronix.de>