hrtimers: Consolidate hrtimer initialization - Part 2
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest31 patches 7 repliesIn review
- v131 patches 7 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/31 | KVM: MIPS: Switch to use hrtimer_setup()arch/ | +2 | 0 replies | |
| 2/31 | KVM: PPC: Switch to use hrtimer_setup()arch/ | +2 | 0 replies | |
| 3/31 | KVM: s390: Switch to use hrtimer_setup()arch/ arch/ | +3 | 1 reply | |
| 4/31 | KVM: x86: Switch to use hrtimer_setup()arch/ arch/ arch/ +2 more | +8 | 1 reply | |
| 5/31 | KVM: arm64: Switch to use hrtimer_setup()arch/ | +3 | 0 replies | |
| 6/31 | LoongArch: KVM: Switch to use hrtimer_setup()arch/ | +2 | 0 replies | |
| 7/31 | riscv: kvm: Switch to use hrtimer_setup()arch/ | +4 | 0 replies | |
| 8/31 | ARM: imx: Switch to use hrtimer_setup()arch/ | +2 | 0 replies | |
| 9/31 | ARM: 8611/1: l2x0: Switch to use hrtimer_setup()arch/ | +1 | 0 replies | |
| 10/31 | powerpc/watchdog: Switch to use hrtimer_setup()arch/ | +1 | 0 replies | |
| 11/31 | perf/x86: Switch to use hrtimer_setup()arch/ arch/ | +2 | 0 replies | |
| 12/31 | s390/ap_bus: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 13/31 | sched: Switch to use hrtimer_setup()kernel/ kernel/ kernel/ +1 more | +9 | 0 replies | |
| 14/31 | mm/slab: Switch to use hrtimer_setup()mm/ | +2 | 0 replies | |
| 15/31 | lib: test_objpool: Switch to use hrtimer_setup()lib/ | +1 | 0 replies | |
| 16/31 | io_uring/timeout: Switch to use hrtimer_setup()io_uring/ | +6 | 0 replies | |
| 17/31 | fork: Switch to use hrtimer_setup()kernel/ | +1 | 0 replies | |
| 18/31 | perf: Switch to use hrtimer_setup()kernel/ | +3 | 0 replies | |
| 19/31 | timerfd: Switch to use hrtimer_setup()fs/ | +2 | 0 replies | |
| 20/31 | time: Switch to hrtimer_setup()kernel/ kernel/ kernel/ +2 more | +8 | 0 replies | |
| 21/31 | bpf: Switch to use hrtimer_setup()kernel/ | +1 | 0 replies | |
| 22/31 | ubifs: Switch to use hrtimer_setup()fs/ | +1 | 1 reply | |
| 23/31 | watchdog: Switch to use hrtimer_setup()drivers/ drivers/ drivers/ +1 more | +8 | 4 replies | |
| 24/31 | tracing/osnoise: Switch to use hrtimer_setup()kernel/ | +2 | 0 replies | |
| 25/31 | block, bfq: Switch to use hrtimer_setup()block/ | +2 | 0 replies | |
| 26/31 | ata: pata_octeon_cf: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 27/31 | blk_iocost: Switch to use hrtimer_setup()block/ | +1 | 0 replies | |
| 28/31 | PM: runtime: Switch to use hrtimer_setup()drivers/ | +2 | 0 replies | |
| 29/31 | PM / devfreq: rockchip-dfi: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies | |
| 30/31 | null_blk: Switch to use hrtimer_setup()drivers/ | +3 | 0 replies | |
| 31/31 | hwrng: timeriomem: Switch to use hrtimer_setup()drivers/ | +1 | 0 replies |
Reviews trailers per patch
9 of 31 patches have a Reviewed-by or Acked-by.
| Patch | Marc Zyngier | Paul E. McKenney | Damien Le Moal | Steven Rostedt (Google) | Rafael J. Wysocki | Chanwoo Choi | Sean Christopherson | Christian Borntraeger | Richard Weinberger |
|---|---|---|---|---|---|---|---|---|---|
| 1/31 | |||||||||
| 2/31 | |||||||||
| 3/31 | A-b | ||||||||
| 4/31 | A-b | ||||||||
| 5/31 | A-b | ||||||||
| 6/31 | |||||||||
| 7/31 | |||||||||
| 8/31 | |||||||||
| 9/31 | |||||||||
| 10/31 | |||||||||
| 11/31 | |||||||||
| 12/31 | |||||||||
| 13/31 | |||||||||
| 14/31 | R-b | ||||||||
| 15/31 | |||||||||
| 16/31 | |||||||||
| 17/31 | |||||||||
| 18/31 | |||||||||
| 19/31 | |||||||||
| 20/31 | |||||||||
| 21/31 | |||||||||
| 22/31 | A-b | ||||||||
| 23/31 | |||||||||
| 24/31 | A-b | ||||||||
| 25/31 | |||||||||
| 26/31 | A-b | ||||||||
| 27/31 | |||||||||
| 28/31 | A-b | ||||||||
| 29/31 | A-b | ||||||||
| 30/31 | |||||||||
| 31/31 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 9 reviewers.
Cover letter [PATCH v2 00/31] hrtimers: Consolidate hrtimer initialization - Part 2
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: Thomas Bogendoerfer <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Sean Christopherson <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Huacai Chen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Russell King <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: "Paul E. McKenney" <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: John Stultz <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Richard Weinberger <[email protected]>
Cc: Wim Van Sebroeck <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Heiko Stuebner <[email protected]>
Cc: Herbert Xu <[email protected]>
---
arch/arm/mach-imx/mmdc.c | 5 ++--- arch/arm/mm/cache-l2x0-pmu.c | 3 +-- arch/arm64/kvm/arch_timer.c | 7 +++---- arch/loongarch/kvm/vcpu.c | 4 ++-- arch/mips/kvm/mips.c | 5 ++--- arch/powerpc/kernel/watchdog.c | 3 +-- arch/powerpc/kvm/powerpc.c | 4 ++-- arch/riscv/kvm/vcpu_timer.c | 7 ++++--- arch/s390/kvm/interrupt.c | 3 +-- arch/s390/kvm/kvm-s390.c | 4 ++-- arch/x86/events/intel/uncore.c | 3 +-- arch/x86/events/rapl.c | 3 +-- arch/x86/kvm/hyperv.c | 3 +-- arch/x86/kvm/i8254.c | 3 +-- arch/x86/kvm/lapic.c | 5 ++--- arch/x86/kvm/vmx/nested.c | 5 ++--- arch/x86/kvm/xen.c | 4 ++-- block/bfq-iosched.c | 5 ++--- block/blk-iocost.c | 3 +-- drivers/ata/pata_octeon_cf.c | 5 ++--- drivers/base/power/runtime.c | 4 ++-- drivers/block/null_blk/main.c | 7 +++---- drivers/char/hw_random/timeriomem-rng.c | 3 +-- drivers/devfreq/event/rockchip-dfi.c | 3 +-- drivers/s390/crypto/ap_bus.c | 3 +-- drivers/watchdog/softdog.c | 8 +++----- drivers/watchdog/watchdog_dev.c | 4 ++-- drivers/watchdog/watchdog_hrtimer_pretimeout.c | 4 ++-- fs/timerfd.c | 5 ++--- fs/ubifs/io.c | 3 +-- io_uring/timeout.c | 13 ++++++------- kernel/bpf/helpers.c | 3 +-- kernel/events/core.c | 7 +++---- kernel/fork.c | 3 +-- kernel/sched/core.c | 3 +-- kernel/sched/deadline.c | 6 ++---- kernel/sched/fair.c | 8 ++++---- kernel/sched/rt.c | 5 ++--- kernel/time/ntp.c | 3 +-- kernel/time/posix-timers.c | 7 +++---- kernel/time/sched_clock.c | 3 +-- kernel/time/tick-broadcast-hrtimer.c | 3 +-- kernel/time/tick-sched.c | 6 ++---- kernel/trace/trace_osnoise.c | 6 ++---- kernel/watchdog.c | 3 +-- lib/test_objpool.c | 3 +-- mm/slab_common.c | 4 ++-- 47 files changed, 87 insertions(+), 127 deletions(-)
Signature · 1 line
2.39.5