Consolidate hrtimer initialization - Part 4
Status from this message: Applied, thank you.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest45 patches 14 repliesApplied
- v144 patches 10 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/45 | USB: chipidea: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 2/45 | usb: dwc2: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 3/45 | usb: fotg210-hcd: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 4/45 | usb: gadget: Switch to use hrtimer_setup()drivers/ drivers/ | +3 | 0 replies | |
| 5/45 | usb: ehci: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 6/45 | usb: musb: cppi41: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 7/45 | usb: typec: tcpm: Switch to use hrtimer_setup()drivers/ | +8 | 0 replies | |
| 8/45 | serial: 8250: Switch to use hrtimer_setup()drivers/ drivers/ | +5 | 0 replies | |
| 9/45 | serial: amba-pl011: Switch to use hrtimer_setup()drivers/ | +4 | 0 replies | |
| 10/45 | serial: imx: Switch to use hrtimer_setup()drivers/ | +4 | 0 replies | |
| 11/45 | serial: sh-sci: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 12/45 | serial: xilinx_uartps: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 13/45 | scsi: Switch to use hrtimer_setup()drivers/ drivers/ drivers/ | +6 | 0 replies | |
| 14/45 | rtc: class: Switch to use hrtimer_setup()drivers/ | +1 | 1 reply | |
| 15/45 | pps: generators: pps_gen_parport: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 16/45 | powercap: Switch to use hrtimer_setup()drivers/ drivers/ | +2 | 0 replies | |
| 17/45 | power: supply: ab8500_chargalg: Switch to use hrtimer_setup()drivers/ | +4 | 1 reply | |
| 18/45 | power: reset: ltc2952-poweroff: Switch to use hrtimer_setup()drivers/ | +4 | 1 reply | |
| 19/45 | drivers: perf: Switch to use hrtimer_setup()drivers/ drivers/ drivers/ | +6 | 0 replies | |
| 20/45 | ntb: ntb_pingpong: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 21/45 | mmc: dw_mmc: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 22/45 | misc: vcpu_stall_detector: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 23/45 | media: Switch to use hrtimer_setup()drivers/ drivers/ drivers/ +1 more | +5 | 0 replies | |
| 24/45 | mailbox: Switch to use hrtimer_setup()drivers/ | +1 | 1 reply | |
| 25/45 | leds: trigger: pattern: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 26/45 | Input: Switch to use hrtimer_setup()drivers/ drivers/ | +5 | 1 reply | |
| 27/45 | iio: Switch to use hrtimer_setup()drivers/ drivers/ | +3 | 1 reply | |
| 28/45 | i2c: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 29/45 | stm class: heartbeat: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 30/45 | drm/amdgpu: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 31/45 | drm/i915/huc: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 32/45 | drm/i915/gvt: Switch to use hrtimer_setup()drivers/ drivers/ | +2 | 0 replies | |
| 33/45 | drm/i915/perf: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 34/45 | drm/i915/pmu: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 35/45 | drm/i915/uncore: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 36/45 | drm/i915/request: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 37/45 | drm/msm: Switch to use hrtimer_setup()drivers/ drivers/ | +2 | 0 replies | |
| 38/45 | drm/vkms: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 39/45 | drm/xe/oa: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 40/45 | drm/vmwgfx: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 41/45 | virtio: mem: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 42/45 | RDMA: Switch to use hrtimer_setup()drivers/ drivers/ | +4 | 0 replies | |
| 43/45 | pwm: gpio: Switch to use hrtimer_setup()drivers/ | +2 | 1 reply | |
| 44/45 | ASoC: fsl: imx-pcm-fiq: Switch to use hrtimer_setup()sound/ | +1 | 1 reply | |
| 45/45 | ALSA: Switch to use hrtimer_setup()sound/ sound/ sound/ +1 more | +4 | 1 reply |
Reviews trailers per patch
44 of 45 patches have a Reviewed-by or Acked-by.
| Patch | Zack Rusin | Hans Verkuil | Linus Walleij | Rafael J. Wysocki | Jonathan Cameron | Alex Deucher | Jani Nikula | Lucas De Marchi | Alexandre Belloni | Sebastian Reichel |
|---|---|---|---|---|---|---|---|---|---|---|
| 1/45 | A-b | |||||||||
| 2/45 | A-b | |||||||||
| 3/45 | A-b | |||||||||
| 4/45 | A-b | |||||||||
| 5/45 | A-b | |||||||||
| 6/45 | A-b | |||||||||
| 7/45 | A-b | |||||||||
| 8/45 | A-b | |||||||||
| 9/45 | ||||||||||
| 10/45 | A-b | |||||||||
| 11/45 | A-b | |||||||||
| 12/45 | A-b | |||||||||
| 13/45 | A-b | |||||||||
| 14/45 | A-b | A-b | ||||||||
| 15/45 | A-b | |||||||||
| 16/45 | A-b | A-b | ||||||||
| 17/45 | A-b | R-b | A-b | |||||||
| 18/45 | A-b | A-b | ||||||||
| 19/45 | A-b | |||||||||
| 20/45 | A-b | |||||||||
| 21/45 | A-b | |||||||||
| 22/45 | A-b | |||||||||
| 23/45 | A-b | A-b | ||||||||
| 24/45 | A-b | |||||||||
| 25/45 | A-b | |||||||||
| 26/45 | A-b | |||||||||
| 27/45 | A-b | A-b | ||||||||
| 28/45 | A-b | |||||||||
| 29/45 | A-b | |||||||||
| 30/45 | A-b | A-b | ||||||||
| 31/45 | A-b | A-b | ||||||||
| 32/45 | A-b | A-b | ||||||||
| 33/45 | A-b | A-b | ||||||||
| 34/45 | A-b | A-b | ||||||||
| 35/45 | A-b | A-b | ||||||||
| 36/45 | A-b | A-b | ||||||||
| 37/45 | A-b | |||||||||
| 38/45 | A-b | |||||||||
| 39/45 | A-b | A-b | ||||||||
| 40/45 | A-b | |||||||||
| 41/45 | A-b | |||||||||
| 42/45 | A-b | |||||||||
| 43/45 | A-b | |||||||||
| 44/45 | A-b | |||||||||
| 45/45 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 10 reviewers.
Cover letter [PATCH v2 00/45] Consolidate hrtimer initialization - Part 4
hrtimers is initialized with hrtimer_init(), and after that the timer's callback function is setup separately. This separate initialization is error prone and awkward to use.
hrtimer_setup() combines the initialization and is simpler to use.
Switch to use the new setup function. Most conversions were done with Coccinelle, see the sematic patch below.
This series is intended to be applied to the tip tree
v1 -> v2 https://lore.kernel.org/lkml/[email protected]
- rebase onto v6.14-rc1
---
virtual patch
@@ expression timer, clock, mode, func; @@
- hrtimer_init(timer, clock, mode);
...
- timer->function = func;
+ hrtimer_setup(timer, func, clock, mode);
@@ expression timer, clock, mode, func; @@
- hrtimer_init(&timer, clock, mode);
...
- timer.function = func;
+ hrtimer_setup(&timer, func, clock, mode);
@@ expression timer, clock, mode, func; @@
- hrtimer_init_on_stack(&timer, clock, mode);
...
- timer.function = func;
+ hrtimer_setup_on_stack(&timer, func, clock, mode);
@@ expression timer, clock, mode; @@
- hrtimer_init_sleeper_on_stack(timer, clock, mode);
+ hrtimer_setup_sleeper_on_stack(timer, clock, mode);
---
Cc: Greg Kroah-Hartman <[email protected]>
Cc: "Martin K. Petersen" <[email protected]>
Cc: Alexandre Belloni <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Jon Mason <[email protected]>
Cc: Jaehoon Chung <[email protected]>
Cc: Hans Verkuil <[email protected]>
Cc: Jassi Brar <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
Cc: Jonathan Cameron <[email protected]>
Cc: Andi Shyti <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: Rob Clark <[email protected]>
Cc: Lucas De Marchi <[email protected]>
Cc: Zack Rusin <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Jason Gunthorpe <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Takashi Iwai <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 4 ++-- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 4 ++-- drivers/gpu/drm/i915/gvt/display.c | 3 +-- drivers/gpu/drm/i915/gvt/sched_policy.c | 3 +-- drivers/gpu/drm/i915/i915_perf.c | 5 ++--- drivers/gpu/drm/i915/i915_pmu.c | 3 +-- drivers/gpu/drm/i915/i915_request.c | 3 +-- drivers/gpu/drm/i915/intel_uncore.c | 3 +-- drivers/gpu/drm/msm/msm_fence.c | 3 +-- drivers/gpu/drm/msm/msm_io_utils.c | 3 +-- drivers/gpu/drm/vkms/vkms_crtc.c | 4 ++-- drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c | 4 ++-- drivers/gpu/drm/xe/xe_oa.c | 4 ++-- drivers/hwtracing/stm/heartbeat.c | 6 ++---- drivers/i2c/busses/i2c-imx.c | 4 ++-- drivers/iio/adc/ti-tsc2046.c | 4 +--- drivers/iio/trigger/iio-trig-hrtimer.c | 4 ++-- drivers/infiniband/hw/hfi1/init.c | 5 ++--- drivers/infiniband/sw/rdmavt/qp.c | 5 ++--- drivers/input/joystick/walkera0701.c | 3 +-- drivers/input/keyboard/gpio_keys.c | 10 ++++------ drivers/leds/trigger/ledtrig-pattern.c | 4 ++-- drivers/mailbox/mailbox.c | 4 +--- drivers/media/cec/core/cec-pin.c | 3 +-- drivers/media/pci/cx88/cx88-input.c | 3 +-- .../media/platform/chips-media/wave5/wave5-vpu.c | 4 ++-- drivers/media/rc/pwm-ir-tx.c | 3 +-- drivers/misc/vcpu_stall_detector.c | 3 +-- drivers/mmc/host/dw_mmc.c | 3 +-- drivers/ntb/test/ntb_pingpong.c | 3 +-- drivers/perf/arm-ccn.c | 5 ++--- drivers/perf/marvell_cn10k_ddr_pmu.c | 4 ++-- drivers/perf/thunderx2_pmu.c | 5 ++--- drivers/power/reset/ltc2952-poweroff.c | 8 ++++---- drivers/power/supply/ab8500_chargalg.c | 9 ++++----- drivers/powercap/idle_inject.c | 3 +-- drivers/powercap/intel_rapl_common.c | 3 +-- drivers/pps/generators/pps_gen_parport.c | 3 +-- drivers/pwm/pwm-gpio.c | 5 ++--- drivers/rtc/class.c | 3 +-- drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c | 4 +--- drivers/scsi/lpfc/lpfc_init.c | 7 +++---- drivers/scsi/scsi_debug.c | 4 ++-- drivers/tty/serial/8250/8250_bcm7271.c | 3 +-- drivers/tty/serial/8250/8250_port.c | 10 ++++------ drivers/tty/serial/amba-pl011.c | 9 ++++----- drivers/tty/serial/imx.c | 8 ++++---- drivers/tty/serial/sh-sci.c | 3 +-- drivers/tty/serial/xilinx_uartps.c | 4 ++-- drivers/usb/chipidea/otg_fsm.c | 3 +-- drivers/usb/dwc2/hcd_queue.c | 3 +-- drivers/usb/fotg210/fotg210-hcd.c | 3 +-- drivers/usb/gadget/function/f_ncm.c | 3 +-- drivers/usb/gadget/udc/dummy_hcd.c | 6 ++---- drivers/usb/host/ehci-hcd.c | 3 +-- drivers/usb/musb/musb_cppi41.c | 4 ++-- drivers/usb/typec/tcpm/tcpm.c | 16 ++++++++-------- drivers/virtio/virtio_mem.c | 4 ++-- sound/core/hrtimer.c | 3 +-- sound/drivers/dummy.c | 3 +-- sound/drivers/pcsp/pcsp.c | 3 +-- sound/sh/sh_dac_audio.c | 3 +-- sound/soc/fsl/imx-pcm-fiq.c | 3 +-- 63 files changed, 112 insertions(+), 165 deletions(-)
Signature · 1 line
2.39.5