Skip to content

Commit 8fa7292

Browse files
KAGA-KOKOIngo Molnar
authored andcommitted
treewide: Switch/rename to timer_delete[_sync]()
timer_delete[_sync]() replaces del_timer[_sync](). Convert the whole tree over and remove the historical wrapper inlines. Conversion was done with coccinelle plus manual fixups where necessary. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent a8662bc commit 8fa7292

File tree

787 files changed

+1613
-1648
lines changed

Some content is hidden

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

787 files changed

+1613
-1648
lines changed

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;

arch/s390/kernel/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ static void stp_work_fn(struct work_struct *work)
680680

681681
if (!stp_online) {
682682
chsc_sstpc(stp_page, STP_OP_CTRL, 0x0000, NULL);
683-
del_timer_sync(&stp_timer);
683+
timer_delete_sync(&stp_timer);
684684
goto out_unlock;
685685
}
686686

0 commit comments

Comments
 (0)