Skip to content

Commit 16cd1c2

Browse files
committed
Merge tag 'timers-cleanups-2025-04-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer cleanups from Thomas Gleixner: "A set of final cleanups for the timer subsystem: - Convert all del_timer[_sync]() instances over to the new timer_delete[_sync]() API and remove the legacy wrappers. Conversion was done with coccinelle plus some manual fixups as coccinelle chokes on scoped_guard(). - The final cleanup of the hrtimer_init() to hrtimer_setup() conversion. This has been delayed to the end of the merge window, so that all patches which have been merged through other trees are in mainline and all new users are catched. Doing this right before rc1 ensures that new code which is merged post rc1 is not introducing new instances of the original functionality" * tag 'timers-cleanups-2025-04-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: tracing/timers: Rename the hrtimer_init event to hrtimer_setup hrtimers: Rename debug_init_on_stack() to debug_setup_on_stack() hrtimers: Rename debug_init() to debug_setup() hrtimers: Rename __hrtimer_init_sleeper() to __hrtimer_setup_sleeper() hrtimers: Remove unnecessary NULL check in hrtimer_start_range_ns() hrtimers: Make callback function pointer private hrtimers: Merge __hrtimer_init() into __hrtimer_setup() hrtimers: Switch to use __htimer_setup() hrtimers: Delete hrtimer_init() treewide: Convert new and leftover hrtimer_init() users treewide: Switch/rename to timer_delete[_sync]()
2 parents ff0c666 + 244132c commit 16cd1c2

File tree

796 files changed

+1650
-1718
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

796 files changed

+1650
-1718
lines changed

Documentation/trace/ftrace.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3077,7 +3077,7 @@ Notice that we lost the sys_nanosleep.
30773077
# cat set_ftrace_filter
30783078
hrtimer_run_queues
30793079
hrtimer_run_pending
3080-
hrtimer_init
3080+
hrtimer_setup
30813081
hrtimer_cancel
30823082
hrtimer_try_to_cancel
30833083
hrtimer_forward
@@ -3115,7 +3115,7 @@ Again, now we want to append.
31153115
# cat set_ftrace_filter
31163116
hrtimer_run_queues
31173117
hrtimer_run_pending
3118-
hrtimer_init
3118+
hrtimer_setup
31193119
hrtimer_cancel
31203120
hrtimer_try_to_cancel
31213121
hrtimer_forward

arch/alpha/kernel/srmcons.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ srmcons_close(struct tty_struct *tty, struct file *filp)
177177

178178
if (tty->count == 1) {
179179
port->tty = NULL;
180-
del_timer(&srmconsp->timer);
180+
timer_delete(&srmconsp->timer);
181181
}
182182

183183
spin_unlock_irqrestore(&port->lock, flags);

arch/arm/mach-footbridge/dc21285.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static struct timer_list perr_timer;
135135

136136
static void dc21285_enable_error(struct timer_list *timer)
137137
{
138-
del_timer(timer);
138+
timer_delete(timer);
139139

140140
if (timer == &serr_timer)
141141
enable_irq(IRQ_PCI_SERR);

arch/arm/mach-pxa/sharpsl_pm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,8 @@ static void sharpsl_pm_remove(struct platform_device *pdev)
913913
if (sharpsl_pm.machinfo->exit)
914914
sharpsl_pm.machinfo->exit();
915915

916-
del_timer_sync(&sharpsl_pm.chrg_full_timer);
917-
del_timer_sync(&sharpsl_pm.ac_timer);
916+
timer_delete_sync(&sharpsl_pm.chrg_full_timer);
917+
timer_delete_sync(&sharpsl_pm.ac_timer);
918918
}
919919

920920
static struct platform_driver sharpsl_pm_driver = {

arch/m68k/amiga/amisound.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void amiga_mksound( unsigned int hz, unsigned int ticks )
7878
return;
7979

8080
local_irq_save(flags);
81-
del_timer( &sound_timer );
81+
timer_delete(&sound_timer);
8282

8383
if (hz > 20 && hz < 32767) {
8484
unsigned long period = (clock_constant / hz);

arch/m68k/mac/macboing.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ void mac_mksound( unsigned int freq, unsigned int length )
183183

184184
local_irq_save(flags);
185185

186-
del_timer( &mac_sound_timer );
186+
timer_delete(&mac_sound_timer);
187187

188188
for ( i = 0; i < 0x800; i++ )
189189
mac_asc_regs[ i ] = 0;
@@ -277,7 +277,7 @@ static void mac_quadra_ring_bell(struct timer_list *unused)
277277

278278
local_irq_save(flags);
279279

280-
del_timer( &mac_sound_timer );
280+
timer_delete(&mac_sound_timer);
281281

282282
if ( mac_bell_duration-- > 0 )
283283
{

arch/mips/sgi-ip22/ip22-reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static void blink_timeout(struct timer_list *unused)
9898

9999
static void debounce(struct timer_list *unused)
100100
{
101-
del_timer(&debounce_timer);
101+
timer_delete(&debounce_timer);
102102
if (sgint->istat1 & SGINT_ISTAT1_PWR) {
103103
/* Interrupt still being sent. */
104104
debounce_timer.expires = jiffies + (HZ / 20); /* 0.05s */

arch/powerpc/kvm/booke.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ static void arm_next_watchdog(struct kvm_vcpu *vcpu)
622622
if (nr_jiffies < NEXT_TIMER_MAX_DELTA)
623623
mod_timer(&vcpu->arch.wdt_timer, jiffies + nr_jiffies);
624624
else
625-
del_timer(&vcpu->arch.wdt_timer);
625+
timer_delete(&vcpu->arch.wdt_timer);
626626
spin_unlock_irqrestore(&vcpu->arch.wdt_lock, flags);
627627
}
628628

@@ -1441,7 +1441,7 @@ int kvmppc_subarch_vcpu_init(struct kvm_vcpu *vcpu)
14411441

14421442
void kvmppc_subarch_vcpu_uninit(struct kvm_vcpu *vcpu)
14431443
{
1444-
del_timer_sync(&vcpu->arch.wdt_timer);
1444+
timer_delete_sync(&vcpu->arch.wdt_timer);
14451445
}
14461446

14471447
int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs)

arch/powerpc/platforms/cell/spufs/sched.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ static void __spu_del_from_rq(struct spu_context *ctx)
508508

509509
if (!list_empty(&ctx->rq)) {
510510
if (!--spu_prio->nr_waiting)
511-
del_timer(&spusched_timer);
511+
timer_delete(&spusched_timer);
512512
list_del_init(&ctx->rq);
513513

514514
if (list_empty(&spu_prio->runq[prio]))
@@ -1126,8 +1126,8 @@ void spu_sched_exit(void)
11261126

11271127
remove_proc_entry("spu_loadavg", NULL);
11281128

1129-
del_timer_sync(&spusched_timer);
1130-
del_timer_sync(&spuloadavg_timer);
1129+
timer_delete_sync(&spusched_timer);
1130+
timer_delete_sync(&spuloadavg_timer);
11311131
kthread_stop(spusched_task);
11321132

11331133
for (node = 0; node < MAX_NUMNODES; node++) {

arch/powerpc/platforms/powermac/low_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static irqreturn_t kw_i2c_irq(int irq, void *dev_id)
347347
unsigned long flags;
348348

349349
spin_lock_irqsave(&host->lock, flags);
350-
del_timer(&host->timeout_timer);
350+
timer_delete(&host->timeout_timer);
351351
kw_i2c_handle_interrupt(host, kw_read_reg(reg_isr));
352352
if (host->state != state_idle) {
353353
host->timeout_timer.expires = jiffies + KW_POLL_TIMEOUT;

0 commit comments

Comments
 (0)