Skip to content

Consolidate hrtimer initialization - Part 5

Nam Cao lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 5 repliesIn review
  2. v112 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12hrtimers: Delete hrtimer_init()include/linux/hrtimer.h include/linux/hrtimer_types.h kernel/time/hrtimer.c+1 -230 replies
2/12hrtimers: Switch to use __htimer_setup()kernel/time/hrtimer.c+1 -20 replies
3/12hrtimers: Merge __hrtimer_init() into __hrtimer_setup()kernel/time/hrtimer.c+3 -90 replies
4/12serial: xilinx_uartps: Use helper function hrtimer_update_function()drivers/tty/serial/xilinx_uartps.c+2 -20 replies
5/12io_uring: Use helper function hrtimer_update_function()io_uring/io_uring.c+1 -19 replies
6/12wifi: rt2x00: Switch to use hrtimer_update_function()drivers/net/wireless/ralink/rt2x00/rt2800mmio.c drivers/net/wireless/ralink/rt2x00/rt2800usb.c+2 -20 replies
7/12hrtimers: Make callback function pointer privateinclude/linux/hrtimer.h include/linux/hrtimer_types.h include/trace/events/timer.h +2 more+9 -90 replies
8/12hrtimers: Remove unnecessary NULL check in hrtimer_start_range_ns()kernel/time/hrtimer.c+0 -20 replies
9/12hrtimers: Rename __hrtimer_init_sleeper() to __hrtimer_setup_sleeper()kernel/time/hrtimer.c+4 -40 replies
10/12hrtimers: Rename debug_init() to debug_setup()kernel/time/hrtimer.c+2 -40 replies
11/12hrtimers: Rename debug_init_on_stack() to debug_setup_on_stack()kernel/time/hrtimer.c+4 -40 replies
12/12tracing/timers: Rename hrtimer_init event to hrtimer_setupDocumentation/trace/ftrace.rst include/trace/events/timer.h kernel/time/hrtimer.c +1 more+7 -70 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/12] Consolidate hrtimer initialization - Part 5

All previous users of hrtimer_init() have been converted to use hrtimer_setup() in the previous series:

https://lore.kernel.org/lkml/[email protected]
https://lore.kernel.org/lkml/[email protected]
https://lore.kernel.org/lkml/[email protected]

This series does the final cleanup:

- Delete hrtimer_init()
- Convert users who touch hrtimer::function to use hrtimer_update_function(). Make hrtimer::function private afterward.
- Rename the remaining *hrtimer_init*() to *hrtimer_setup*() to keep the names consistent

v1 -> v2 https://lore.kernel.org/lkml/[email protected]
- rebaes onto v6.14-rc1
---
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Kalle Valo <[email protected]>
Cc: Steven Rostedt <[email protected]>

---
 Documentation/trace/ftrace.rst                |  4 +-
 .../net/wireless/ralink/rt2x00/rt2800mmio.c   |  2 +-
 .../net/wireless/ralink/rt2x00/rt2800usb.c    |  2 +-
 drivers/tty/serial/xilinx_uartps.c            |  4 +-
 include/linux/hrtimer.h                       |  4 +-
 include/linux/hrtimer_types.h                 |  4 +-
 include/trace/events/timer.h                  |  8 +--
 io_uring/io_uring.c                           |  2 +-
 kernel/time/hrtimer.c                         | 69 +++++--------------
 kernel/time/timer_list.c                      |  2 +-
 tools/perf/tests/shell/trace_btf_enum.sh      |  2 +-
 11 files changed, 35 insertions(+), 68 deletions(-)
Signature · 1 line
2.39.5