Skip to content

hrtimer: Untangle base definitions from hrtimer.h

Thomas Weißschuh (Schneider Electric) lkml 1 version Applied

Status from this message: The following commit has been merged into the timers/core branch of tip:

Get series with b4
b4 am 20260702-hrtimer-header-dependencies-v1-0-c50b19bda473@linutronix.de change-id 20260626-hrtimer-header-dependencies-5a7d2ddff43f

Versions newest first

  1. v1 Latest8 patches 0 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8hrtimer: Rename hrtimer_defs.h to hrtimer_bases.hinclude/linux/hrtimer.h include/linux/hrtimer_bases.h+3 -30 replies
2/8hrtimer: Move hrtimer_callback_running() to hrtimer_bases.hinclude/linux/hrtimer.h include/linux/hrtimer_bases.h kernel/sched/fair.c +1 more+13 -90 replies
3/8hrtimer: Move hrtimer_update_function() to hrtimer.cinclude/linux/hrtimer.h kernel/time/hrtimer.c+26 -220 replies
4/8tick: Explicitly include linux/hrtimer_bases.hkernel/time/tick-internal.h+1 -00 replies
5/8hrtimer: Explicitly include linux/hrtimer_bases.hkernel/time/hrtimer.c+1 -00 replies
6/8hrtimer: Explicitly include some necessary headers in hrtimer_rearm.hinclude/linux/hrtimer_rearm.h+5 -00 replies
7/8x86/speculation: Explicitly include linux/types.harch/x86/include/asm/nospec-branch.h+1 -00 replies
8/8hrtimer: Remove inclusion of hrtimer_bases.h remove from hrtimer.hinclude/linux/hrtimer.h+0 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] hrtimer: Untangle base definitions from hrtimer.h

Currently the hrtimer base structure definitions are included from the widely used linux/hrtimer.h header.
Any change to the base structures will trigger a nearly full rebuild.

That inclusion is not really necessary as nearly no user needs the base bits anyways.

---
Thomas Weißschuh (Schneider Electric) (8):
hrtimer: Rename hrtimer_defs.h to hrtimer_bases.h
hrtimer: Move hrtimer_callback_running() to hrtimer_bases.h
hrtimer: Move hrtimer_update_function() to hrtimer.c
tick: Explicitly include linux/hrtimer_bases.h
hrtimer: Explicitly include linux/hrtimer_bases.h
hrtimer: Explicitly include some necessary headers in hrtimer_rearm.h x86/speculation: Explicitly include linux/types.h
hrtimer: Remove inclusion of hrtimer_bases.h remove from hrtimer.h

 arch/x86/include/asm/nospec-branch.h              |  1 +
 include/linux/hrtimer.h                           | 34 ++---------------------
 include/linux/{hrtimer_defs.h => hrtimer_bases.h} | 14 ++++++++--
 include/linux/hrtimer_rearm.h                     |  5 ++++
 kernel/sched/fair.c                               |  2 ++
 kernel/time/hrtimer.c                             | 25 +++++++++++++++++
 kernel/time/tick-internal.h                       |  1 +
 sound/drivers/dummy.c                             |  1 +
 8 files changed, 49 insertions(+), 34 deletions(-)

---
base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
change-id: 20260626-hrtimer-header-dependencies-5a7d2ddff43f

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>