forked from mirrors/linux
		
	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>
This commit is contained in:
		
							parent
							
								
									a8662bcd2f
								
							
						
					
					
						commit
						8fa7292fee
					
				
					 787 changed files with 1613 additions and 1648 deletions
				
			
		|  | @ -177,7 +177,7 @@ srmcons_close(struct tty_struct *tty, struct file *filp) | |||
| 
 | ||||
| 	if (tty->count == 1) { | ||||
| 		port->tty = NULL; | ||||
| 		del_timer(&srmconsp->timer); | ||||
| 		timer_delete(&srmconsp->timer); | ||||
| 	} | ||||
| 
 | ||||
| 	spin_unlock_irqrestore(&port->lock, flags); | ||||
|  |  | |||
|  | @ -135,7 +135,7 @@ static struct timer_list perr_timer; | |||
| 
 | ||||
| static void dc21285_enable_error(struct timer_list *timer) | ||||
| { | ||||
| 	del_timer(timer); | ||||
| 	timer_delete(timer); | ||||
| 
 | ||||
| 	if (timer == &serr_timer) | ||||
| 		enable_irq(IRQ_PCI_SERR); | ||||
|  |  | |||
|  | @ -913,8 +913,8 @@ static void sharpsl_pm_remove(struct platform_device *pdev) | |||
| 	if (sharpsl_pm.machinfo->exit) | ||||
| 		sharpsl_pm.machinfo->exit(); | ||||
| 
 | ||||
| 	del_timer_sync(&sharpsl_pm.chrg_full_timer); | ||||
| 	del_timer_sync(&sharpsl_pm.ac_timer); | ||||
| 	timer_delete_sync(&sharpsl_pm.chrg_full_timer); | ||||
| 	timer_delete_sync(&sharpsl_pm.ac_timer); | ||||
| } | ||||
| 
 | ||||
| static struct platform_driver sharpsl_pm_driver = { | ||||
|  |  | |||
|  | @ -78,7 +78,7 @@ void amiga_mksound( unsigned int hz, unsigned int ticks ) | |||
| 		return; | ||||
| 
 | ||||
| 	local_irq_save(flags); | ||||
| 	del_timer( &sound_timer ); | ||||
| 	timer_delete(&sound_timer); | ||||
| 
 | ||||
| 	if (hz > 20 && hz < 32767) { | ||||
| 		unsigned long period = (clock_constant / hz); | ||||
|  |  | |||
|  | @ -183,7 +183,7 @@ void mac_mksound( unsigned int freq, unsigned int length ) | |||
| 
 | ||||
| 	local_irq_save(flags); | ||||
| 
 | ||||
| 	del_timer( &mac_sound_timer ); | ||||
| 	timer_delete(&mac_sound_timer); | ||||
| 
 | ||||
| 	for ( i = 0; i < 0x800; i++ ) | ||||
| 		mac_asc_regs[ i ] = 0; | ||||
|  | @ -277,7 +277,7 @@ static void mac_quadra_ring_bell(struct timer_list *unused) | |||
| 
 | ||||
| 	local_irq_save(flags); | ||||
| 
 | ||||
| 	del_timer( &mac_sound_timer ); | ||||
| 	timer_delete(&mac_sound_timer); | ||||
| 
 | ||||
| 	if ( mac_bell_duration-- > 0 ) | ||||
| 	{ | ||||
|  |  | |||
|  | @ -98,7 +98,7 @@ static void blink_timeout(struct timer_list *unused) | |||
| 
 | ||||
| static void debounce(struct timer_list *unused) | ||||
| { | ||||
| 	del_timer(&debounce_timer); | ||||
| 	timer_delete(&debounce_timer); | ||||
| 	if (sgint->istat1 & SGINT_ISTAT1_PWR) { | ||||
| 		/* Interrupt still being sent. */ | ||||
| 		debounce_timer.expires = jiffies + (HZ / 20); /* 0.05s	*/ | ||||
|  |  | |||
|  | @ -622,7 +622,7 @@ static void arm_next_watchdog(struct kvm_vcpu *vcpu) | |||
| 	if (nr_jiffies < NEXT_TIMER_MAX_DELTA) | ||||
| 		mod_timer(&vcpu->arch.wdt_timer, jiffies + nr_jiffies); | ||||
| 	else | ||||
| 		del_timer(&vcpu->arch.wdt_timer); | ||||
| 		timer_delete(&vcpu->arch.wdt_timer); | ||||
| 	spin_unlock_irqrestore(&vcpu->arch.wdt_lock, flags); | ||||
| } | ||||
| 
 | ||||
|  | @ -1441,7 +1441,7 @@ int kvmppc_subarch_vcpu_init(struct kvm_vcpu *vcpu) | |||
| 
 | ||||
| void kvmppc_subarch_vcpu_uninit(struct kvm_vcpu *vcpu) | ||||
| { | ||||
| 	del_timer_sync(&vcpu->arch.wdt_timer); | ||||
| 	timer_delete_sync(&vcpu->arch.wdt_timer); | ||||
| } | ||||
| 
 | ||||
| int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) | ||||
|  |  | |||
|  | @ -508,7 +508,7 @@ static void __spu_del_from_rq(struct spu_context *ctx) | |||
| 
 | ||||
| 	if (!list_empty(&ctx->rq)) { | ||||
| 		if (!--spu_prio->nr_waiting) | ||||
| 			del_timer(&spusched_timer); | ||||
| 			timer_delete(&spusched_timer); | ||||
| 		list_del_init(&ctx->rq); | ||||
| 
 | ||||
| 		if (list_empty(&spu_prio->runq[prio])) | ||||
|  | @ -1126,8 +1126,8 @@ void spu_sched_exit(void) | |||
| 
 | ||||
| 	remove_proc_entry("spu_loadavg", NULL); | ||||
| 
 | ||||
| 	del_timer_sync(&spusched_timer); | ||||
| 	del_timer_sync(&spuloadavg_timer); | ||||
| 	timer_delete_sync(&spusched_timer); | ||||
| 	timer_delete_sync(&spuloadavg_timer); | ||||
| 	kthread_stop(spusched_task); | ||||
| 
 | ||||
| 	for (node = 0; node < MAX_NUMNODES; node++) { | ||||
|  |  | |||
|  | @ -347,7 +347,7 @@ static irqreturn_t kw_i2c_irq(int irq, void *dev_id) | |||
| 	unsigned long flags; | ||||
| 
 | ||||
| 	spin_lock_irqsave(&host->lock, flags); | ||||
| 	del_timer(&host->timeout_timer); | ||||
| 	timer_delete(&host->timeout_timer); | ||||
| 	kw_i2c_handle_interrupt(host, kw_read_reg(reg_isr)); | ||||
| 	if (host->state != state_idle) { | ||||
| 		host->timeout_timer.expires = jiffies + KW_POLL_TIMEOUT; | ||||
|  |  | |||
|  | @ -680,7 +680,7 @@ static void stp_work_fn(struct work_struct *work) | |||
| 
 | ||||
| 	if (!stp_online) { | ||||
| 		chsc_sstpc(stp_page, STP_OP_CTRL, 0x0000, NULL); | ||||
| 		del_timer_sync(&stp_timer); | ||||
| 		timer_delete_sync(&stp_timer); | ||||
| 		goto out_unlock; | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
|  | @ -201,7 +201,7 @@ static void cmm_set_timer(void) | |||
| { | ||||
| 	if (cmm_timed_pages_target <= 0 || cmm_timeout_seconds <= 0) { | ||||
| 		if (timer_pending(&cmm_timer)) | ||||
| 			del_timer(&cmm_timer); | ||||
| 			timer_delete(&cmm_timer); | ||||
| 		return; | ||||
| 	} | ||||
| 	mod_timer(&cmm_timer, jiffies + secs_to_jiffies(cmm_timeout_seconds)); | ||||
|  | @ -424,7 +424,7 @@ static int __init cmm_init(void) | |||
| #endif | ||||
| 	unregister_sysctl_table(cmm_sysctl_header); | ||||
| out_sysctl: | ||||
| 	del_timer_sync(&cmm_timer); | ||||
| 	timer_delete_sync(&cmm_timer); | ||||
| 	return rc; | ||||
| } | ||||
| module_init(cmm_init); | ||||
|  | @ -437,7 +437,7 @@ static void __exit cmm_exit(void) | |||
| #endif | ||||
| 	unregister_oom_notifier(&cmm_oom_nb); | ||||
| 	kthread_stop(cmm_thread_ptr); | ||||
| 	del_timer_sync(&cmm_timer); | ||||
| 	timer_delete_sync(&cmm_timer); | ||||
| 	cmm_free_pages(cmm_pages, &cmm_pages, &cmm_page_list); | ||||
| 	cmm_free_pages(cmm_timed_pages, &cmm_timed_pages, &cmm_timed_page_list); | ||||
| } | ||||
|  |  | |||
|  | @ -90,7 +90,7 @@ static void pcibios_enable_err(struct timer_list *t) | |||
| { | ||||
| 	struct pci_channel *hose = from_timer(hose, t, err_timer); | ||||
| 
 | ||||
| 	del_timer(&hose->err_timer); | ||||
| 	timer_delete(&hose->err_timer); | ||||
| 	printk(KERN_DEBUG "PCI: re-enabling error IRQ.\n"); | ||||
| 	enable_irq(hose->err_irq); | ||||
| } | ||||
|  | @ -99,7 +99,7 @@ static void pcibios_enable_serr(struct timer_list *t) | |||
| { | ||||
| 	struct pci_channel *hose = from_timer(hose, t, serr_timer); | ||||
| 
 | ||||
| 	del_timer(&hose->serr_timer); | ||||
| 	timer_delete(&hose->serr_timer); | ||||
| 	printk(KERN_DEBUG "PCI: re-enabling system error IRQ.\n"); | ||||
| 	enable_irq(hose->serr_irq); | ||||
| } | ||||
|  |  | |||
|  | @ -84,7 +84,7 @@ static ssize_t led_proc_write(struct file *file, const char __user *buffer, | |||
| 	/* before we change anything we want to stop any running timers,
 | ||||
| 	 * otherwise calls such as on will have no persistent effect | ||||
| 	 */ | ||||
| 	del_timer_sync(&led_blink_timer); | ||||
| 	timer_delete_sync(&led_blink_timer); | ||||
| 
 | ||||
| 	if (!strcmp(buf, "on")) { | ||||
| 		auxio_set_led(AUXIO_LED_ON); | ||||
|  | @ -134,7 +134,7 @@ static int __init led_init(void) | |||
| static void __exit led_exit(void) | ||||
| { | ||||
| 	remove_proc_entry("led", NULL); | ||||
| 	del_timer_sync(&led_blink_timer); | ||||
| 	timer_delete_sync(&led_blink_timer); | ||||
| } | ||||
| 
 | ||||
| module_init(led_init); | ||||
|  |  | |||
|  | @ -1112,7 +1112,7 @@ static int vector_net_close(struct net_device *dev) | |||
| 	struct vector_private *vp = netdev_priv(dev); | ||||
| 
 | ||||
| 	netif_stop_queue(dev); | ||||
| 	del_timer(&vp->tl); | ||||
| 	timer_delete(&vp->tl); | ||||
| 
 | ||||
| 	vp->opened = false; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1786,13 +1786,13 @@ void mce_timer_kick(bool storm) | |||
| 		__this_cpu_write(mce_next_interval, check_interval * HZ); | ||||
| } | ||||
| 
 | ||||
| /* Must not be called in IRQ context where del_timer_sync() can deadlock */ | ||||
| /* Must not be called in IRQ context where timer_delete_sync() can deadlock */ | ||||
| static void mce_timer_delete_all(void) | ||||
| { | ||||
| 	int cpu; | ||||
| 
 | ||||
| 	for_each_online_cpu(cpu) | ||||
| 		del_timer_sync(&per_cpu(mce_timer, cpu)); | ||||
| 		timer_delete_sync(&per_cpu(mce_timer, cpu)); | ||||
| } | ||||
| 
 | ||||
| static void __mcheck_cpu_mce_banks_init(void) | ||||
|  | @ -2820,7 +2820,7 @@ static int mce_cpu_pre_down(unsigned int cpu) | |||
| 	struct timer_list *t = this_cpu_ptr(&mce_timer); | ||||
| 
 | ||||
| 	mce_disable_cpu(); | ||||
| 	del_timer_sync(t); | ||||
| 	timer_delete_sync(t); | ||||
| 	mce_threshold_remove_device(cpu); | ||||
| 	mce_device_remove(cpu); | ||||
| 	return 0; | ||||
|  |  | |||
|  | @ -1553,7 +1553,7 @@ static bool kvm_xen_schedop_poll(struct kvm_vcpu *vcpu, bool longmode, | |||
| 		kvm_vcpu_halt(vcpu); | ||||
| 
 | ||||
| 		if (sched_poll.timeout) | ||||
| 			del_timer(&vcpu->arch.xen.poll_timer); | ||||
| 			timer_delete(&vcpu->arch.xen.poll_timer); | ||||
| 
 | ||||
| 		kvm_set_mp_state(vcpu, KVM_MP_STATE_RUNNABLE); | ||||
| 	} | ||||
|  | @ -2308,7 +2308,7 @@ void kvm_xen_destroy_vcpu(struct kvm_vcpu *vcpu) | |||
| 	kvm_gpc_deactivate(&vcpu->arch.xen.vcpu_info_cache); | ||||
| 	kvm_gpc_deactivate(&vcpu->arch.xen.vcpu_time_info_cache); | ||||
| 
 | ||||
| 	del_timer_sync(&vcpu->arch.xen.poll_timer); | ||||
| 	timer_delete_sync(&vcpu->arch.xen.poll_timer); | ||||
| } | ||||
| 
 | ||||
| void kvm_xen_init_vm(struct kvm *kvm) | ||||
|  |  | |||
|  | @ -48,7 +48,7 @@ static int rs_open(struct tty_struct *tty, struct file * filp) | |||
| static void rs_close(struct tty_struct *tty, struct file * filp) | ||||
| { | ||||
| 	if (tty->count == 1) | ||||
| 		del_timer_sync(&serial_timer); | ||||
| 		timer_delete_sync(&serial_timer); | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -375,7 +375,7 @@ static int iss_net_close(struct net_device *dev) | |||
| 	struct iss_net_private *lp = netdev_priv(dev); | ||||
| 
 | ||||
| 	netif_stop_queue(dev); | ||||
| 	del_timer_sync(&lp->timer); | ||||
| 	timer_delete_sync(&lp->timer); | ||||
| 	lp->tp.net_ops->close(lp); | ||||
| 
 | ||||
| 	return 0; | ||||
|  |  | |||
|  | @ -219,7 +219,7 @@ EXPORT_SYMBOL_GPL(blk_status_to_str); | |||
|  */ | ||||
| void blk_sync_queue(struct request_queue *q) | ||||
| { | ||||
| 	del_timer_sync(&q->timeout); | ||||
| 	timer_delete_sync(&q->timeout); | ||||
| 	cancel_work_sync(&q->timeout_work); | ||||
| } | ||||
| EXPORT_SYMBOL(blk_sync_queue); | ||||
|  |  | |||
|  | @ -162,7 +162,7 @@ void blk_stat_remove_callback(struct request_queue *q, | |||
| 		blk_queue_flag_clear(QUEUE_FLAG_STATS, q); | ||||
| 	spin_unlock_irqrestore(&q->stats->lock, flags); | ||||
| 
 | ||||
| 	del_timer_sync(&cb->timer); | ||||
| 	timer_delete_sync(&cb->timer); | ||||
| } | ||||
| 
 | ||||
| static void blk_stat_free_callback_rcu(struct rcu_head *head) | ||||
|  |  | |||
|  | @ -148,7 +148,7 @@ static inline void blk_stat_activate_nsecs(struct blk_stat_callback *cb, | |||
| 
 | ||||
| static inline void blk_stat_deactivate(struct blk_stat_callback *cb) | ||||
| { | ||||
| 	del_timer_sync(&cb->timer); | ||||
| 	timer_delete_sync(&cb->timer); | ||||
| } | ||||
| 
 | ||||
| /**
 | ||||
|  |  | |||
|  | @ -333,7 +333,7 @@ static void throtl_pd_free(struct blkg_policy_data *pd) | |||
| { | ||||
| 	struct throtl_grp *tg = pd_to_tg(pd); | ||||
| 
 | ||||
| 	del_timer_sync(&tg->service_queue.pending_timer); | ||||
| 	timer_delete_sync(&tg->service_queue.pending_timer); | ||||
| 	blkg_rwstat_exit(&tg->stat_bytes); | ||||
| 	blkg_rwstat_exit(&tg->stat_ios); | ||||
| 	kfree(tg); | ||||
|  | @ -1711,7 +1711,7 @@ void blk_throtl_exit(struct gendisk *disk) | |||
| 	if (!blk_throtl_activated(q)) | ||||
| 		return; | ||||
| 
 | ||||
| 	del_timer_sync(&q->td->service_queue.pending_timer); | ||||
| 	timer_delete_sync(&q->td->service_queue.pending_timer); | ||||
| 	throtl_shutdown_wq(q); | ||||
| 	blkcg_deactivate_policy(disk, &blkcg_policy_throtl); | ||||
| 	kfree(q->td); | ||||
|  |  | |||
|  | @ -221,7 +221,7 @@ static void qaic_timesync_remove(struct mhi_device *mhi_dev) | |||
| { | ||||
| 	struct mqts_dev *mqtsdev = dev_get_drvdata(&mhi_dev->dev); | ||||
| 
 | ||||
| 	del_timer_sync(&mqtsdev->timer); | ||||
| 	timer_delete_sync(&mqtsdev->timer); | ||||
| 	mhi_unprepare_from_transfer(mqtsdev->mhi_dev); | ||||
| 	kfree(mqtsdev->sync_msg); | ||||
| 	kfree(mqtsdev); | ||||
|  |  | |||
|  | @ -1172,13 +1172,13 @@ static void do_handle_shift(struct vc_data *vc, u_char value, char up_flag) | |||
| 	if (cursor_track == read_all_mode) { | ||||
| 		switch (value) { | ||||
| 		case KVAL(K_SHIFT): | ||||
| 			del_timer(&cursor_timer); | ||||
| 			timer_delete(&cursor_timer); | ||||
| 			spk_shut_up &= 0xfe; | ||||
| 			spk_do_flush(); | ||||
| 			read_all_doc(vc); | ||||
| 			break; | ||||
| 		case KVAL(K_CTRL): | ||||
| 			del_timer(&cursor_timer); | ||||
| 			timer_delete(&cursor_timer); | ||||
| 			cursor_track = prev_cursor_track; | ||||
| 			spk_shut_up &= 0xfe; | ||||
| 			spk_do_flush(); | ||||
|  | @ -1399,7 +1399,7 @@ static void start_read_all_timer(struct vc_data *vc, enum read_all_command comma | |||
| 
 | ||||
| static void kbd_fakekey2(struct vc_data *vc, enum read_all_command command) | ||||
| { | ||||
| 	del_timer(&cursor_timer); | ||||
| 	timer_delete(&cursor_timer); | ||||
| 	speakup_fake_down_arrow(); | ||||
| 	start_read_all_timer(vc, command); | ||||
| } | ||||
|  | @ -1415,7 +1415,7 @@ static void read_all_doc(struct vc_data *vc) | |||
| 	cursor_track = read_all_mode; | ||||
| 	spk_reset_index_count(0); | ||||
| 	if (get_sentence_buf(vc, 0) == -1) { | ||||
| 		del_timer(&cursor_timer); | ||||
| 		timer_delete(&cursor_timer); | ||||
| 		if (!in_keyboard_notifier) | ||||
| 			speakup_fake_down_arrow(); | ||||
| 		start_read_all_timer(vc, RA_DOWN_ARROW); | ||||
|  | @ -1428,7 +1428,7 @@ static void read_all_doc(struct vc_data *vc) | |||
| 
 | ||||
| static void stop_read_all(struct vc_data *vc) | ||||
| { | ||||
| 	del_timer(&cursor_timer); | ||||
| 	timer_delete(&cursor_timer); | ||||
| 	cursor_track = prev_cursor_track; | ||||
| 	spk_shut_up &= 0xfe; | ||||
| 	spk_do_flush(); | ||||
|  | @ -1528,7 +1528,7 @@ static int pre_handle_cursor(struct vc_data *vc, u_char value, char up_flag) | |||
| 			spin_unlock_irqrestore(&speakup_info.spinlock, flags); | ||||
| 			return NOTIFY_STOP; | ||||
| 		} | ||||
| 		del_timer(&cursor_timer); | ||||
| 		timer_delete(&cursor_timer); | ||||
| 		spk_shut_up &= 0xfe; | ||||
| 		spk_do_flush(); | ||||
| 		start_read_all_timer(vc, value + 1); | ||||
|  | @ -1692,7 +1692,7 @@ static void cursor_done(struct timer_list *unused) | |||
| 	struct vc_data *vc = vc_cons[cursor_con].d; | ||||
| 	unsigned long flags; | ||||
| 
 | ||||
| 	del_timer(&cursor_timer); | ||||
| 	timer_delete(&cursor_timer); | ||||
| 	spin_lock_irqsave(&speakup_info.spinlock, flags); | ||||
| 	if (cursor_con != fg_console) { | ||||
| 		is_cursor = 0; | ||||
|  | @ -2333,7 +2333,7 @@ static void __exit speakup_exit(void) | |||
| 	speakup_unregister_devsynth(); | ||||
| 	speakup_cancel_selection(); | ||||
| 	speakup_cancel_paste(); | ||||
| 	del_timer_sync(&cursor_timer); | ||||
| 	timer_delete_sync(&cursor_timer); | ||||
| 	kthread_stop(speakup_task); | ||||
| 	speakup_task = NULL; | ||||
| 	mutex_lock(&spk_mutex); | ||||
|  | @ -2437,7 +2437,7 @@ static int __init speakup_init(void) | |||
| 
 | ||||
| error_vtnotifier: | ||||
| 	unregister_keyboard_notifier(&keyboard_notifier_block); | ||||
| 	del_timer(&cursor_timer); | ||||
| 	timer_delete(&cursor_timer); | ||||
| 
 | ||||
| error_kbdnotifier: | ||||
| 	speakup_unregister_devsynth(); | ||||
|  |  | |||
|  | @ -521,7 +521,7 @@ void synth_release(void) | |||
| 	spin_lock_irqsave(&speakup_info.spinlock, flags); | ||||
| 	pr_info("releasing synth %s\n", synth->name); | ||||
| 	synth->alive = 0; | ||||
| 	del_timer(&thread_timer); | ||||
| 	timer_delete(&thread_timer); | ||||
| 	spin_unlock_irqrestore(&speakup_info.spinlock, flags); | ||||
| 	if (synth->attributes.name) | ||||
| 		sysfs_remove_group(speakup_kobj, &synth->attributes); | ||||
|  |  | |||
|  | @ -700,7 +700,7 @@ void ata_scsi_port_error_handler(struct Scsi_Host *host, struct ata_port *ap) | |||
| 	ata_eh_acquire(ap); | ||||
|  repeat: | ||||
| 	/* kill fast drain timer */ | ||||
| 	del_timer_sync(&ap->fastdrain_timer); | ||||
| 	timer_delete_sync(&ap->fastdrain_timer); | ||||
| 
 | ||||
| 	/* process port resume request */ | ||||
| 	ata_eh_handle_port_resume(ap); | ||||
|  |  | |||
|  | @ -366,8 +366,8 @@ EXPORT_SYMBOL(idt77105_init); | |||
| static void __exit idt77105_exit(void) | ||||
| { | ||||
| 	/* turn off timers */ | ||||
| 	del_timer_sync(&stats_timer); | ||||
| 	del_timer_sync(&restart_timer); | ||||
| 	timer_delete_sync(&stats_timer); | ||||
| 	timer_delete_sync(&restart_timer); | ||||
| } | ||||
| 
 | ||||
| module_exit(idt77105_exit); | ||||
|  |  | |||
|  | @ -3283,7 +3283,7 @@ static void __exit ia_module_exit(void) | |||
| { | ||||
| 	pci_unregister_driver(&ia_driver); | ||||
| 
 | ||||
| 	del_timer_sync(&ia_timer); | ||||
| 	timer_delete_sync(&ia_timer); | ||||
| } | ||||
| 
 | ||||
| module_init(ia_module_init); | ||||
|  |  | |||
|  | @ -1792,7 +1792,7 @@ static inline void lanai_timed_poll_start(struct lanai_dev *lanai) | |||
| 
 | ||||
| static inline void lanai_timed_poll_stop(struct lanai_dev *lanai) | ||||
| { | ||||
| 	del_timer_sync(&lanai->timer); | ||||
| 	timer_delete_sync(&lanai->timer); | ||||
| } | ||||
| 
 | ||||
| /* -------------------- INTERRUPT SERVICE: */ | ||||
|  |  | |||
|  | @ -300,7 +300,7 @@ static void __exit nicstar_cleanup(void) | |||
| { | ||||
| 	XPRINTK("nicstar: nicstar_cleanup() called.\n"); | ||||
| 
 | ||||
| 	del_timer_sync(&ns_timer); | ||||
| 	timer_delete_sync(&ns_timer); | ||||
| 
 | ||||
| 	pci_unregister_driver(&nicstar_driver); | ||||
| 
 | ||||
|  |  | |||
|  | @ -347,7 +347,7 @@ static int suni_stop(struct atm_dev *dev) | |||
| 	for (walk = &sunis; *walk != PRIV(dev); | ||||
| 	    walk = &PRIV((*walk)->dev)->next); | ||||
| 	*walk = PRIV((*walk)->dev)->next; | ||||
| 	if (!sunis) del_timer_sync(&poll_timer); | ||||
| 	if (!sunis) timer_delete_sync(&poll_timer); | ||||
| 	spin_unlock_irqrestore(&sunis_lock,flags); | ||||
| 	kfree(PRIV(dev)); | ||||
| 
 | ||||
|  |  | |||
|  | @ -84,7 +84,7 @@ static int linedisp_display(struct linedisp *linedisp, const char *msg, | |||
| 	char *new_msg; | ||||
| 
 | ||||
| 	/* stop the scroll timer */ | ||||
| 	del_timer_sync(&linedisp->timer); | ||||
| 	timer_delete_sync(&linedisp->timer); | ||||
| 
 | ||||
| 	if (count == -1) | ||||
| 		count = strlen(msg); | ||||
|  | @ -183,7 +183,7 @@ static ssize_t scroll_step_ms_store(struct device *dev, | |||
| 
 | ||||
| 	linedisp->scroll_rate = msecs_to_jiffies(ms); | ||||
| 	if (linedisp->message && linedisp->message_len > linedisp->num_chars) { | ||||
| 		del_timer_sync(&linedisp->timer); | ||||
| 		timer_delete_sync(&linedisp->timer); | ||||
| 		if (linedisp->scroll_rate) | ||||
| 			linedisp_scroll(&linedisp->timer); | ||||
| 	} | ||||
|  | @ -376,7 +376,7 @@ int linedisp_register(struct linedisp *linedisp, struct device *parent, | |||
| out_del_dev: | ||||
| 	device_del(&linedisp->dev); | ||||
| out_del_timer: | ||||
| 	del_timer_sync(&linedisp->timer); | ||||
| 	timer_delete_sync(&linedisp->timer); | ||||
| out_put_device: | ||||
| 	put_device(&linedisp->dev); | ||||
| 	return err; | ||||
|  | @ -391,7 +391,7 @@ EXPORT_SYMBOL_NS_GPL(linedisp_register, "LINEDISP"); | |||
| void linedisp_unregister(struct linedisp *linedisp) | ||||
| { | ||||
| 	device_del(&linedisp->dev); | ||||
| 	del_timer_sync(&linedisp->timer); | ||||
| 	timer_delete_sync(&linedisp->timer); | ||||
| 	put_device(&linedisp->dev); | ||||
| } | ||||
| EXPORT_SYMBOL_NS_GPL(linedisp_unregister, "LINEDISP"); | ||||
|  |  | |||
|  | @ -1654,7 +1654,7 @@ static void panel_attach(struct parport *port) | |||
| 
 | ||||
| err_lcd_unreg: | ||||
| 	if (scan_timer.function) | ||||
| 		del_timer_sync(&scan_timer); | ||||
| 		timer_delete_sync(&scan_timer); | ||||
| 	if (lcd.enabled) | ||||
| 		charlcd_unregister(lcd.charlcd); | ||||
| err_unreg_device: | ||||
|  | @ -1675,7 +1675,7 @@ static void panel_detach(struct parport *port) | |||
| 		return; | ||||
| 	} | ||||
| 	if (scan_timer.function) | ||||
| 		del_timer_sync(&scan_timer); | ||||
| 		timer_delete_sync(&scan_timer); | ||||
| 
 | ||||
| 	if (keypad.enabled) { | ||||
| 		misc_deregister(&keypad_dev); | ||||
|  |  | |||
|  | @ -41,7 +41,7 @@ struct devcd_entry { | |||
| 	 *                                             devcd_data_write() | ||||
| 	 *                                               mod_delayed_work() | ||||
| 	 *                                                 try_to_grab_pending() | ||||
| 	 *                                                   del_timer() | ||||
| 	 *                                                   timer_delete() | ||||
| 	 *                                                     debug_assert_init() | ||||
| 	 *       INIT_DELAYED_WORK() | ||||
| 	 *       schedule_delayed_work() | ||||
|  |  | |||
|  | @ -559,7 +559,7 @@ static void dpm_watchdog_clear(struct dpm_watchdog *wd) | |||
| { | ||||
| 	struct timer_list *timer = &wd->timer; | ||||
| 
 | ||||
| 	del_timer_sync(timer); | ||||
| 	timer_delete_sync(timer); | ||||
| 	destroy_timer_on_stack(timer); | ||||
| } | ||||
| #else | ||||
|  |  | |||
|  | @ -197,7 +197,7 @@ void wakeup_source_remove(struct wakeup_source *ws) | |||
| 	raw_spin_unlock_irqrestore(&events_lock, flags); | ||||
| 	synchronize_srcu(&wakeup_srcu); | ||||
| 
 | ||||
| 	del_timer_sync(&ws->timer); | ||||
| 	timer_delete_sync(&ws->timer); | ||||
| 	/*
 | ||||
| 	 * Clear timer.function to make wakeup_source_not_registered() treat | ||||
| 	 * this wakeup source as not registered. | ||||
|  | @ -613,7 +613,7 @@ void __pm_stay_awake(struct wakeup_source *ws) | |||
| 	spin_lock_irqsave(&ws->lock, flags); | ||||
| 
 | ||||
| 	wakeup_source_report_event(ws, false); | ||||
| 	del_timer(&ws->timer); | ||||
| 	timer_delete(&ws->timer); | ||||
| 	ws->timer_expires = 0; | ||||
| 
 | ||||
| 	spin_unlock_irqrestore(&ws->lock, flags); | ||||
|  | @ -693,7 +693,7 @@ static void wakeup_source_deactivate(struct wakeup_source *ws) | |||
| 		ws->max_time = duration; | ||||
| 
 | ||||
| 	ws->last_time = now; | ||||
| 	del_timer(&ws->timer); | ||||
| 	timer_delete(&ws->timer); | ||||
| 	ws->timer_expires = 0; | ||||
| 
 | ||||
| 	if (ws->autosleep_enabled) | ||||
|  |  | |||
|  | @ -457,7 +457,7 @@ static int fd_motor_on(int nr) | |||
| { | ||||
| 	nr &= 3; | ||||
| 
 | ||||
| 	del_timer(motor_off_timer + nr); | ||||
| 	timer_delete(motor_off_timer + nr); | ||||
| 
 | ||||
| 	if (!unit[nr].motor) { | ||||
| 		unit[nr].motor = 1; | ||||
|  | @ -1393,7 +1393,7 @@ static int non_int_flush_track (unsigned long nr) | |||
| 
 | ||||
| 	nr&=3; | ||||
| 	writefromint = 0; | ||||
| 	del_timer(&post_write_timer); | ||||
| 	timer_delete(&post_write_timer); | ||||
| 	get_fdc(nr); | ||||
| 	if (!fd_motor_on(nr)) { | ||||
| 		writepending = 0; | ||||
|  | @ -1435,7 +1435,7 @@ static int get_track(int drive, int track) | |||
| 	} | ||||
| 
 | ||||
| 	if (unit[drive].dirty == 1) { | ||||
| 		del_timer (flush_track_timer + drive); | ||||
| 		timer_delete(flush_track_timer + drive); | ||||
| 		non_int_flush_track (drive); | ||||
| 	} | ||||
| 	errcnt = 0; | ||||
|  | @ -1591,7 +1591,7 @@ static int fd_locked_ioctl(struct block_device *bdev, blk_mode_t mode, | |||
| 	case FDDEFPRM: | ||||
| 		return -EINVAL; | ||||
| 	case FDFLUSH: /* unconditionally, even if not needed */ | ||||
| 		del_timer (flush_track_timer + drive); | ||||
| 		timer_delete(flush_track_timer + drive); | ||||
| 		non_int_flush_track(drive); | ||||
| 		break; | ||||
| #ifdef RAW_IOCTL | ||||
|  | @ -1714,7 +1714,7 @@ static void floppy_release(struct gendisk *disk) | |||
| 
 | ||||
| 	mutex_lock(&amiflop_mutex); | ||||
| 	if (unit[drive].dirty == 1) { | ||||
| 		del_timer (flush_track_timer + drive); | ||||
| 		timer_delete(flush_track_timer + drive); | ||||
| 		non_int_flush_track (drive); | ||||
| 	} | ||||
|    | ||||
|  |  | |||
|  | @ -274,7 +274,7 @@ freedev(struct aoedev *d) | |||
| 	if (!freeing) | ||||
| 		return; | ||||
| 
 | ||||
| 	del_timer_sync(&d->timer); | ||||
| 	timer_delete_sync(&d->timer); | ||||
| 	if (d->gd) { | ||||
| 		aoedisk_rm_debugfs(d); | ||||
| 		del_gendisk(d->gd); | ||||
|  |  | |||
|  | @ -28,7 +28,7 @@ static void discover_timer(struct timer_list *t) | |||
| static void __exit | ||||
| aoe_exit(void) | ||||
| { | ||||
| 	del_timer_sync(&timer); | ||||
| 	timer_delete_sync(&timer); | ||||
| 
 | ||||
| 	aoenet_exit(); | ||||
| 	unregister_blkdev(AOE_MAJOR, DEVICE_NAME); | ||||
|  |  | |||
|  | @ -494,7 +494,7 @@ static inline void start_timeout(void) | |||
| 
 | ||||
| static inline void stop_timeout(void) | ||||
| { | ||||
| 	del_timer(&timeout_timer); | ||||
| 	timer_delete(&timeout_timer); | ||||
| } | ||||
| 
 | ||||
| /* Select the side to use. */ | ||||
|  | @ -784,7 +784,7 @@ static int do_format(int drive, int type, struct atari_format_descr *desc) | |||
| 	   contents become invalid! */ | ||||
| 	BufferDrive = -1; | ||||
| 	/* stop deselect timer */ | ||||
| 	del_timer( &motor_off_timer ); | ||||
| 	timer_delete(&motor_off_timer); | ||||
| 
 | ||||
| 	FILL( 60 * (nsect / 9), 0x4e ); | ||||
| 	for( sect = 0; sect < nsect; ++sect ) { | ||||
|  | @ -1138,7 +1138,7 @@ static void fd_rwsec_done( int status ) | |||
| 	DPRINT(("fd_rwsec_done()\n")); | ||||
| 
 | ||||
| 	if (read_track) { | ||||
| 		del_timer(&readtrack_timer); | ||||
| 		timer_delete(&readtrack_timer); | ||||
| 		if (!MultReadInProgress) | ||||
| 			return; | ||||
| 		MultReadInProgress = 0; | ||||
|  | @ -1356,7 +1356,7 @@ static void fd_times_out(struct timer_list *unused) | |||
| 	/* If the timeout occurred while the readtrack_check timer was
 | ||||
| 	 * active, we need to cancel it, else bad things will happen */ | ||||
| 	if (UseTrackbuffer) | ||||
| 		del_timer( &readtrack_timer ); | ||||
| 		timer_delete(&readtrack_timer); | ||||
| 	FDC_WRITE( FDCREG_CMD, FDCCMD_FORCI ); | ||||
| 	udelay( 25 ); | ||||
| 	 | ||||
|  | @ -1566,7 +1566,7 @@ static blk_status_t ataflop_queue_rq(struct blk_mq_hw_ctx *hctx, | |||
| 	} | ||||
| 
 | ||||
| 	/* stop deselect timer */ | ||||
| 	del_timer( &motor_off_timer ); | ||||
| 	timer_delete(&motor_off_timer); | ||||
| 		 | ||||
| 	ReqCnt = 0; | ||||
| 	ReqCmd = rq_data_dir(fd_request); | ||||
|  | @ -2055,7 +2055,7 @@ static void atari_floppy_cleanup(void) | |||
| 		blk_mq_free_tag_set(&unit[i].tag_set); | ||||
| 	} | ||||
| 
 | ||||
| 	del_timer_sync(&fd_timer); | ||||
| 	timer_delete_sync(&fd_timer); | ||||
| 	atari_stram_free(DMABuffer); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -3034,7 +3034,7 @@ void drbd_md_sync(struct drbd_device *device) | |||
| 	BUILD_BUG_ON(UI_SIZE != 4); | ||||
| 	BUILD_BUG_ON(sizeof(struct meta_data_on_disk) != 4096); | ||||
| 
 | ||||
| 	del_timer(&device->md_sync_timer); | ||||
| 	timer_delete(&device->md_sync_timer); | ||||
| 	/* timer may be rearmed by drbd_md_mark_dirty() now. */ | ||||
| 	if (!test_and_clear_bit(MD_DIRTY, &device->flags)) | ||||
| 		return; | ||||
|  |  | |||
|  | @ -1033,7 +1033,7 @@ drbd_determine_dev_size(struct drbd_device *device, enum dds_flags flags, struct | |||
| 		/* We do some synchronous IO below, which may take some time.
 | ||||
| 		 * Clear the timer, to avoid scary "timer expired!" messages, | ||||
| 		 * "Superblock" is written out at least twice below, anyways. */ | ||||
| 		del_timer(&device->md_sync_timer); | ||||
| 		timer_delete(&device->md_sync_timer); | ||||
| 
 | ||||
| 		/* We won't change the "al-extents" setting, we just may need
 | ||||
| 		 * to move the on-disk location of the activity log ringbuffer. | ||||
|  |  | |||
|  | @ -5187,7 +5187,7 @@ static int drbd_disconnected(struct drbd_peer_device *peer_device) | |||
| 	atomic_set(&device->rs_pending_cnt, 0); | ||||
| 	wake_up(&device->misc_wait); | ||||
| 
 | ||||
| 	del_timer_sync(&device->resync_timer); | ||||
| 	timer_delete_sync(&device->resync_timer); | ||||
| 	resync_timer_fn(&device->resync_timer); | ||||
| 
 | ||||
| 	/* wait for all w_e_end_data_req, w_e_end_rsdata_req, w_send_barrier,
 | ||||
|  |  | |||
|  | @ -937,7 +937,7 @@ static void floppy_off(unsigned int drive) | |||
| 	if (!(fdc_state[fdc].dor & (0x10 << UNIT(drive)))) | ||||
| 		return; | ||||
| 
 | ||||
| 	del_timer(motor_off_timer + drive); | ||||
| 	timer_delete(motor_off_timer + drive); | ||||
| 
 | ||||
| 	/* make spindle stop in a position which minimizes spinup time
 | ||||
| 	 * next time */ | ||||
|  | @ -1918,7 +1918,7 @@ static int start_motor(void (*function)(void)) | |||
| 		mask &= ~(0x10 << UNIT(current_drive)); | ||||
| 
 | ||||
| 	/* starts motor and selects floppy */ | ||||
| 	del_timer(motor_off_timer + current_drive); | ||||
| 	timer_delete(motor_off_timer + current_drive); | ||||
| 	set_dor(current_fdc, mask, data); | ||||
| 
 | ||||
| 	/* wait_for_completion also schedules reset if needed. */ | ||||
|  | @ -4762,7 +4762,7 @@ static int __init do_floppy_init(void) | |||
| 	for (drive = 0; drive < N_DRIVE; drive++) { | ||||
| 		if (!disks[drive][0]) | ||||
| 			break; | ||||
| 		del_timer_sync(&motor_off_timer[drive]); | ||||
| 		timer_delete_sync(&motor_off_timer[drive]); | ||||
| 		put_disk(disks[drive][0]); | ||||
| 		blk_mq_free_tag_set(&tag_sets[drive]); | ||||
| 	} | ||||
|  | @ -4983,7 +4983,7 @@ static void __exit floppy_module_exit(void) | |||
| 	destroy_workqueue(floppy_wq); | ||||
| 
 | ||||
| 	for (drive = 0; drive < N_DRIVE; drive++) { | ||||
| 		del_timer_sync(&motor_off_timer[drive]); | ||||
| 		timer_delete_sync(&motor_off_timer[drive]); | ||||
| 
 | ||||
| 		if (floppy_available(drive)) { | ||||
| 			for (i = 0; i < ARRAY_SIZE(floppy_type); i++) { | ||||
|  |  | |||
|  | @ -1070,7 +1070,7 @@ static void vdc_port_remove(struct vio_dev *vdev) | |||
| 
 | ||||
| 		flush_work(&port->ldc_reset_work); | ||||
| 		cancel_delayed_work_sync(&port->ldc_reset_timer_work); | ||||
| 		del_timer_sync(&port->vio.timer); | ||||
| 		timer_delete_sync(&port->vio.timer); | ||||
| 
 | ||||
| 		del_gendisk(port->disk); | ||||
| 		put_disk(port->disk); | ||||
|  |  | |||
|  | @ -362,7 +362,7 @@ static void set_timeout(struct floppy_state *fs, int nticks, | |||
| 			void (*proc)(struct timer_list *t)) | ||||
| { | ||||
| 	if (fs->timeout_pending) | ||||
| 		del_timer(&fs->timeout); | ||||
| 		timer_delete(&fs->timeout); | ||||
| 	fs->timeout.expires = jiffies + nticks; | ||||
| 	fs->timeout.function = proc; | ||||
| 	add_timer(&fs->timeout); | ||||
|  | @ -677,7 +677,7 @@ static irqreturn_t swim3_interrupt(int irq, void *dev_id) | |||
| 			out_8(&sw->control_bic, DO_ACTION | WRITE_SECTORS); | ||||
| 			out_8(&sw->select, RELAX); | ||||
| 			out_8(&sw->intr_enable, 0); | ||||
| 			del_timer(&fs->timeout); | ||||
| 			timer_delete(&fs->timeout); | ||||
| 			fs->timeout_pending = 0; | ||||
| 			if (sw->ctrack == 0xff) { | ||||
| 				swim3_err("%s", "Seen sector but cyl=ff?\n"); | ||||
|  | @ -706,7 +706,7 @@ static irqreturn_t swim3_interrupt(int irq, void *dev_id) | |||
| 			out_8(&sw->control_bic, DO_SEEK); | ||||
| 			out_8(&sw->select, RELAX); | ||||
| 			out_8(&sw->intr_enable, 0); | ||||
| 			del_timer(&fs->timeout); | ||||
| 			timer_delete(&fs->timeout); | ||||
| 			fs->timeout_pending = 0; | ||||
| 			if (fs->state == seeking) | ||||
| 				++fs->retries; | ||||
|  | @ -716,7 +716,7 @@ static irqreturn_t swim3_interrupt(int irq, void *dev_id) | |||
| 		break; | ||||
| 	case settling: | ||||
| 		out_8(&sw->intr_enable, 0); | ||||
| 		del_timer(&fs->timeout); | ||||
| 		timer_delete(&fs->timeout); | ||||
| 		fs->timeout_pending = 0; | ||||
| 		act(fs); | ||||
| 		break; | ||||
|  | @ -726,7 +726,7 @@ static irqreturn_t swim3_interrupt(int irq, void *dev_id) | |||
| 		out_8(&sw->intr_enable, 0); | ||||
| 		out_8(&sw->control_bic, WRITE_SECTORS | DO_ACTION); | ||||
| 		out_8(&sw->select, RELAX); | ||||
| 		del_timer(&fs->timeout); | ||||
| 		timer_delete(&fs->timeout); | ||||
| 		fs->timeout_pending = 0; | ||||
| 		dr = fs->dma; | ||||
| 		cp = fs->dma_cmd; | ||||
|  |  | |||
|  | @ -638,7 +638,7 @@ static int bluecard_hci_close(struct hci_dev *hdev) | |||
| 	bluecard_hci_flush(hdev); | ||||
| 
 | ||||
| 	/* Stop LED timer */ | ||||
| 	del_timer_sync(&(info->timer)); | ||||
| 	timer_delete_sync(&(info->timer)); | ||||
| 
 | ||||
| 	/* Disable power LED */ | ||||
| 	outb(0x00, iobase + 0x30); | ||||
|  | @ -885,7 +885,7 @@ static void bluecard_release(struct pcmcia_device *link) | |||
| 
 | ||||
| 	bluecard_close(info); | ||||
| 
 | ||||
| 	del_timer_sync(&(info->timer)); | ||||
| 	timer_delete_sync(&(info->timer)); | ||||
| 
 | ||||
| 	pcmcia_disable_device(link); | ||||
| } | ||||
|  |  | |||
|  | @ -382,7 +382,7 @@ static void bcsp_pkt_cull(struct bcsp_struct *bcsp) | |||
| 	} | ||||
| 
 | ||||
| 	if (skb_queue_empty(&bcsp->unack)) | ||||
| 		del_timer(&bcsp->tbcsp); | ||||
| 		timer_delete(&bcsp->tbcsp); | ||||
| 
 | ||||
| 	spin_unlock_irqrestore(&bcsp->unack.lock, flags); | ||||
| 
 | ||||
|  |  | |||
|  | @ -197,7 +197,7 @@ static void h5_peer_reset(struct hci_uart *hu) | |||
| 
 | ||||
| 	h5->state = H5_UNINITIALIZED; | ||||
| 
 | ||||
| 	del_timer(&h5->timer); | ||||
| 	timer_delete(&h5->timer); | ||||
| 
 | ||||
| 	skb_queue_purge(&h5->rel); | ||||
| 	skb_queue_purge(&h5->unrel); | ||||
|  | @ -254,7 +254,7 @@ static int h5_close(struct hci_uart *hu) | |||
| { | ||||
| 	struct h5 *h5 = hu->priv; | ||||
| 
 | ||||
| 	del_timer_sync(&h5->timer); | ||||
| 	timer_delete_sync(&h5->timer); | ||||
| 
 | ||||
| 	skb_queue_purge(&h5->unack); | ||||
| 	skb_queue_purge(&h5->rel); | ||||
|  | @ -318,7 +318,7 @@ static void h5_pkt_cull(struct h5 *h5) | |||
| 	} | ||||
| 
 | ||||
| 	if (skb_queue_empty(&h5->unack)) | ||||
| 		del_timer(&h5->timer); | ||||
| 		timer_delete(&h5->timer); | ||||
| 
 | ||||
| unlock: | ||||
| 	spin_unlock_irqrestore(&h5->unack.lock, flags); | ||||
|  |  | |||
|  | @ -867,7 +867,7 @@ static void device_woke_up(struct hci_uart *hu) | |||
| 			skb_queue_tail(&qca->txq, skb); | ||||
| 
 | ||||
| 		/* Switch timers and change state to HCI_IBS_TX_AWAKE */ | ||||
| 		del_timer(&qca->wake_retrans_timer); | ||||
| 		timer_delete(&qca->wake_retrans_timer); | ||||
| 		idle_delay = msecs_to_jiffies(qca->tx_idle_delay); | ||||
| 		mod_timer(&qca->tx_idle_timer, jiffies + idle_delay); | ||||
| 		qca->tx_ibs_state = HCI_IBS_TX_AWAKE; | ||||
|  | @ -2239,8 +2239,8 @@ static int qca_power_off(struct hci_dev *hdev) | |||
| 	hu->hdev->hw_error = NULL; | ||||
| 	hu->hdev->reset = NULL; | ||||
| 
 | ||||
| 	del_timer_sync(&qca->wake_retrans_timer); | ||||
| 	del_timer_sync(&qca->tx_idle_timer); | ||||
| 	timer_delete_sync(&qca->wake_retrans_timer); | ||||
| 	timer_delete_sync(&qca->tx_idle_timer); | ||||
| 
 | ||||
| 	/* Stop sending shutdown command if soc crashes. */ | ||||
| 	if (soc_type != QCA_ROME | ||||
|  | @ -2629,10 +2629,10 @@ static int __maybe_unused qca_suspend(struct device *dev) | |||
| 
 | ||||
| 	switch (qca->tx_ibs_state) { | ||||
| 	case HCI_IBS_TX_WAKING: | ||||
| 		del_timer(&qca->wake_retrans_timer); | ||||
| 		timer_delete(&qca->wake_retrans_timer); | ||||
| 		fallthrough; | ||||
| 	case HCI_IBS_TX_AWAKE: | ||||
| 		del_timer(&qca->tx_idle_timer); | ||||
| 		timer_delete(&qca->tx_idle_timer); | ||||
| 
 | ||||
| 		serdev_device_write_flush(hu->serdev); | ||||
| 		cmd = HCI_IBS_SLEEP_IND; | ||||
|  |  | |||
|  | @ -1096,7 +1096,7 @@ static void mhi_pci_recovery_work(struct work_struct *work) | |||
| 
 | ||||
| 	dev_warn(&pdev->dev, "device recovery started\n"); | ||||
| 
 | ||||
| 	del_timer(&mhi_pdev->health_check_timer); | ||||
| 	timer_delete(&mhi_pdev->health_check_timer); | ||||
| 	pm_runtime_forbid(&pdev->dev); | ||||
| 
 | ||||
| 	/* Clean up MHI state */ | ||||
|  | @ -1293,7 +1293,7 @@ static void mhi_pci_remove(struct pci_dev *pdev) | |||
| 	struct mhi_pci_device *mhi_pdev = pci_get_drvdata(pdev); | ||||
| 	struct mhi_controller *mhi_cntrl = &mhi_pdev->mhi_cntrl; | ||||
| 
 | ||||
| 	del_timer_sync(&mhi_pdev->health_check_timer); | ||||
| 	timer_delete_sync(&mhi_pdev->health_check_timer); | ||||
| 	cancel_work_sync(&mhi_pdev->recovery_work); | ||||
| 
 | ||||
| 	if (test_and_clear_bit(MHI_PCI_DEV_STARTED, &mhi_pdev->status)) { | ||||
|  | @ -1321,7 +1321,7 @@ static void mhi_pci_reset_prepare(struct pci_dev *pdev) | |||
| 
 | ||||
| 	dev_info(&pdev->dev, "reset\n"); | ||||
| 
 | ||||
| 	del_timer(&mhi_pdev->health_check_timer); | ||||
| 	timer_delete(&mhi_pdev->health_check_timer); | ||||
| 
 | ||||
| 	/* Clean up MHI state */ | ||||
| 	if (test_and_clear_bit(MHI_PCI_DEV_STARTED, &mhi_pdev->status)) { | ||||
|  | @ -1431,7 +1431,7 @@ static int  __maybe_unused mhi_pci_runtime_suspend(struct device *dev) | |||
| 	if (test_and_set_bit(MHI_PCI_DEV_SUSPENDED, &mhi_pdev->status)) | ||||
| 		return 0; | ||||
| 
 | ||||
| 	del_timer(&mhi_pdev->health_check_timer); | ||||
| 	timer_delete(&mhi_pdev->health_check_timer); | ||||
| 	cancel_work_sync(&mhi_pdev->recovery_work); | ||||
| 
 | ||||
| 	if (!test_bit(MHI_PCI_DEV_STARTED, &mhi_pdev->status) || | ||||
|  |  | |||
|  | @ -243,11 +243,11 @@ static __poll_t dtlk_poll(struct file *file, poll_table * wait) | |||
| 	poll_wait(file, &dtlk_process_list, wait); | ||||
| 
 | ||||
| 	if (dtlk_has_indexing && dtlk_readable()) { | ||||
| 	        del_timer(&dtlk_timer); | ||||
| 	        timer_delete(&dtlk_timer); | ||||
| 		mask = EPOLLIN | EPOLLRDNORM; | ||||
| 	} | ||||
| 	if (dtlk_writeable()) { | ||||
| 	        del_timer(&dtlk_timer); | ||||
| 	        timer_delete(&dtlk_timer); | ||||
| 		mask |= EPOLLOUT | EPOLLWRNORM; | ||||
| 	} | ||||
| 	/* there are no exception conditions */ | ||||
|  | @ -322,7 +322,7 @@ static int dtlk_release(struct inode *inode, struct file *file) | |||
| 	} | ||||
| 	TRACE_RET; | ||||
| 	 | ||||
| 	del_timer_sync(&dtlk_timer); | ||||
| 	timer_delete_sync(&dtlk_timer); | ||||
| 
 | ||||
| 	return 0; | ||||
| } | ||||
|  |  | |||
|  | @ -167,7 +167,7 @@ static int __init hangcheck_init(void) | |||
| 
 | ||||
| static void __exit hangcheck_exit(void) | ||||
| { | ||||
| 	del_timer_sync(&hangcheck_ticktock); | ||||
| 	timer_delete_sync(&hangcheck_ticktock); | ||||
|         printk("Hangcheck: Stopped hangcheck timer.\n"); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -93,7 +93,7 @@ static void xgene_rng_expired_timer(struct timer_list *t) | |||
| 	/* Clear failure counter as timer expired */ | ||||
| 	disable_irq(ctx->irq); | ||||
| 	ctx->failure_cnt = 0; | ||||
| 	del_timer(&ctx->failure_timer); | ||||
| 	timer_delete(&ctx->failure_timer); | ||||
| 	enable_irq(ctx->irq); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -465,7 +465,7 @@ static void bt_bmc_remove(struct platform_device *pdev) | |||
| 
 | ||||
| 	misc_deregister(&bt_bmc->miscdev); | ||||
| 	if (bt_bmc->irq < 0) | ||||
| 		del_timer_sync(&bt_bmc->poll_timer); | ||||
| 		timer_delete_sync(&bt_bmc->poll_timer); | ||||
| } | ||||
| 
 | ||||
| static const struct of_device_id bt_bmc_match[] = { | ||||
|  |  | |||
|  | @ -5538,7 +5538,7 @@ static void __exit cleanup_ipmi(void) | |||
| 		 * here. | ||||
| 		 */ | ||||
| 		atomic_set(&stop_operation, 1); | ||||
| 		del_timer_sync(&ipmi_timer); | ||||
| 		timer_delete_sync(&ipmi_timer); | ||||
| 
 | ||||
| 		initialized = false; | ||||
| 
 | ||||
|  |  | |||
|  | @ -859,7 +859,7 @@ static enum si_sm_result smi_event_handler(struct smi_info *smi_info, | |||
| 
 | ||||
| 	if (si_sm_result == SI_SM_IDLE && smi_info->timer_running) { | ||||
| 		/* Ok it if fails, the timer will just go off. */ | ||||
| 		if (del_timer(&smi_info->si_timer)) | ||||
| 		if (timer_delete(&smi_info->si_timer)) | ||||
| 			smi_info->timer_running = false; | ||||
| 	} | ||||
| 
 | ||||
|  | @ -1839,7 +1839,7 @@ static inline void stop_timer_and_thread(struct smi_info *smi_info) | |||
| 	} | ||||
| 
 | ||||
| 	smi_info->timer_can_start = false; | ||||
| 	del_timer_sync(&smi_info->si_timer); | ||||
| 	timer_delete_sync(&smi_info->si_timer); | ||||
| } | ||||
| 
 | ||||
| static struct smi_info *find_dup_si(struct smi_info *info) | ||||
|  |  | |||
|  | @ -599,7 +599,7 @@ static void ssif_alert(struct i2c_client *client, enum i2c_alert_protocol type, | |||
| 	flags = ipmi_ssif_lock_cond(ssif_info, &oflags); | ||||
| 	if (ssif_info->waiting_alert) { | ||||
| 		ssif_info->waiting_alert = false; | ||||
| 		del_timer(&ssif_info->retry_timer); | ||||
| 		timer_delete(&ssif_info->retry_timer); | ||||
| 		do_get = true; | ||||
| 	} else if (ssif_info->curr_msg) { | ||||
| 		ssif_info->got_alert = true; | ||||
|  | @ -1268,8 +1268,8 @@ static void shutdown_ssif(void *send_info) | |||
| 		schedule_timeout(1); | ||||
| 
 | ||||
| 	ssif_info->stopping = true; | ||||
| 	del_timer_sync(&ssif_info->watch_timer); | ||||
| 	del_timer_sync(&ssif_info->retry_timer); | ||||
| 	timer_delete_sync(&ssif_info->watch_timer); | ||||
| 	timer_delete_sync(&ssif_info->retry_timer); | ||||
| 	if (ssif_info->thread) { | ||||
| 		complete(&ssif_info->wake_thread); | ||||
| 		kthread_stop(ssif_info->thread); | ||||
|  |  | |||
|  | @ -428,7 +428,7 @@ static void aspeed_kcs_irq_mask_update(struct kcs_bmc_device *kcs_bmc, u8 mask, | |||
| 			if (rc == -ETIMEDOUT) | ||||
| 				mod_timer(&priv->obe.timer, jiffies + OBE_POLL_PERIOD); | ||||
| 		} else { | ||||
| 			del_timer(&priv->obe.timer); | ||||
| 			timer_delete(&priv->obe.timer); | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
|  | @ -655,7 +655,7 @@ static void aspeed_kcs_remove(struct platform_device *pdev) | |||
| 	spin_lock_irq(&priv->obe.lock); | ||||
| 	priv->obe.remove = true; | ||||
| 	spin_unlock_irq(&priv->obe.lock); | ||||
| 	del_timer_sync(&priv->obe.timer); | ||||
| 	timer_delete_sync(&priv->obe.timer); | ||||
| } | ||||
| 
 | ||||
| static const struct of_device_id ast_kcs_bmc_match[] = { | ||||
|  |  | |||
|  | @ -209,7 +209,7 @@ static ssize_t ssif_bmc_write(struct file *file, const char __user *buf, size_t | |||
| 	if (ret) | ||||
| 		goto exit; | ||||
| 
 | ||||
| 	del_timer(&ssif_bmc->response_timer); | ||||
| 	timer_delete(&ssif_bmc->response_timer); | ||||
| 	ssif_bmc->response_timer_inited = false; | ||||
| 
 | ||||
| 	memcpy(&ssif_bmc->response, &msg, count); | ||||
|  |  | |||
|  | @ -1352,7 +1352,7 @@ static void __cold try_to_generate_entropy(void) | |||
| 	} | ||||
| 	mix_pool_bytes(&stack->entropy, sizeof(stack->entropy)); | ||||
| 
 | ||||
| 	del_timer_sync(&stack->timer); | ||||
| 	timer_delete_sync(&stack->timer); | ||||
| 	destroy_timer_on_stack(&stack->timer); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -838,7 +838,7 @@ static void __exit tlclk_cleanup(void) | |||
| 	unregister_chrdev(tlclk_major, "telco_clock"); | ||||
| 
 | ||||
| 	release_region(TLCLK_BASE, 8); | ||||
| 	del_timer_sync(&switchover_timer); | ||||
| 	timer_delete_sync(&switchover_timer); | ||||
| 	kfree(alarm_events); | ||||
| 
 | ||||
| } | ||||
|  | @ -856,7 +856,7 @@ static void switchover_timeout(struct timer_list *unused) | |||
| 	} | ||||
| 
 | ||||
| 	/* Alarm processing is done, wake up read task */ | ||||
| 	del_timer(&switchover_timer); | ||||
| 	timer_delete(&switchover_timer); | ||||
| 	got_event = 1; | ||||
| 	wake_up(&wq); | ||||
| } | ||||
|  |  | |||
|  | @ -160,7 +160,7 @@ ssize_t tpm_common_read(struct file *file, char __user *buf, | |||
| out: | ||||
| 	if (!priv->response_length) { | ||||
| 		*off = 0; | ||||
| 		del_timer_sync(&priv->user_read_timer); | ||||
| 		timer_delete_sync(&priv->user_read_timer); | ||||
| 		flush_work(&priv->timeout_work); | ||||
| 	} | ||||
| 	mutex_unlock(&priv->buffer_mutex); | ||||
|  | @ -267,7 +267,7 @@ __poll_t tpm_common_poll(struct file *file, poll_table *wait) | |||
| void tpm_common_release(struct file *file, struct file_priv *priv) | ||||
| { | ||||
| 	flush_work(&priv->async_work); | ||||
| 	del_timer_sync(&priv->user_read_timer); | ||||
| 	timer_delete_sync(&priv->user_read_timer); | ||||
| 	flush_work(&priv->timeout_work); | ||||
| 	file->private_data = NULL; | ||||
| 	priv->response_length = 0; | ||||
|  |  | |||
|  | @ -418,9 +418,9 @@ static int waveform_ai_cancel(struct comedi_device *dev, | |||
| 	spin_unlock_bh(&dev->spinlock); | ||||
| 	if (in_softirq()) { | ||||
| 		/* Assume we were called from the timer routine itself. */ | ||||
| 		del_timer(&devpriv->ai_timer); | ||||
| 		timer_delete(&devpriv->ai_timer); | ||||
| 	} else { | ||||
| 		del_timer_sync(&devpriv->ai_timer); | ||||
| 		timer_delete_sync(&devpriv->ai_timer); | ||||
| 	} | ||||
| 	return 0; | ||||
| } | ||||
|  | @ -628,9 +628,9 @@ static int waveform_ao_cancel(struct comedi_device *dev, | |||
| 	spin_unlock_bh(&dev->spinlock); | ||||
| 	if (in_softirq()) { | ||||
| 		/* Assume we were called from the timer routine itself. */ | ||||
| 		del_timer(&devpriv->ao_timer); | ||||
| 		timer_delete(&devpriv->ao_timer); | ||||
| 	} else { | ||||
| 		del_timer_sync(&devpriv->ao_timer); | ||||
| 		timer_delete_sync(&devpriv->ao_timer); | ||||
| 	} | ||||
| 	return 0; | ||||
| } | ||||
|  | @ -791,8 +791,8 @@ static void waveform_detach(struct comedi_device *dev) | |||
| 	struct waveform_private *devpriv = dev->private; | ||||
| 
 | ||||
| 	if (devpriv) { | ||||
| 		del_timer_sync(&devpriv->ai_timer); | ||||
| 		del_timer_sync(&devpriv->ao_timer); | ||||
| 		timer_delete_sync(&devpriv->ai_timer); | ||||
| 		timer_delete_sync(&devpriv->ao_timer); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -775,7 +775,7 @@ static int das16_cancel(struct comedi_device *dev, struct comedi_subdevice *s) | |||
| 	/*  disable SW timer */ | ||||
| 	if (devpriv->timer_running) { | ||||
| 		devpriv->timer_running = 0; | ||||
| 		del_timer(&devpriv->timer); | ||||
| 		timer_delete(&devpriv->timer); | ||||
| 	} | ||||
| 
 | ||||
| 	if (devpriv->can_burst) | ||||
|  | @ -940,7 +940,7 @@ static void das16_free_dma(struct comedi_device *dev) | |||
| 	struct das16_private_struct *devpriv = dev->private; | ||||
| 
 | ||||
| 	if (devpriv) { | ||||
| 		del_timer_sync(&devpriv->timer); | ||||
| 		timer_delete_sync(&devpriv->timer); | ||||
| 		comedi_isadma_free(devpriv->dma); | ||||
| 	} | ||||
| } | ||||
|  |  | |||
|  | @ -758,7 +758,7 @@ static void jr3_pci_detach(struct comedi_device *dev) | |||
| 	struct jr3_pci_dev_private *devpriv = dev->private; | ||||
| 
 | ||||
| 	if (devpriv) | ||||
| 		del_timer_sync(&devpriv->timer); | ||||
| 		timer_delete_sync(&devpriv->timer); | ||||
| 
 | ||||
| 	comedi_pci_detach(dev); | ||||
| } | ||||
|  |  | |||
|  | @ -802,7 +802,7 @@ static int powernv_cpufreq_target_index(struct cpufreq_policy *policy, | |||
| 	if (gpstate_idx != new_index) | ||||
| 		queue_gpstate_timer(gpstates); | ||||
| 	else | ||||
| 		del_timer_sync(&gpstates->timer); | ||||
| 		timer_delete_sync(&gpstates->timer); | ||||
| 
 | ||||
| gpstates_done: | ||||
| 	freq_data.gpstate_id = idx_to_pstate(gpstate_idx); | ||||
|  | @ -880,7 +880,7 @@ static void powernv_cpufreq_cpu_exit(struct cpufreq_policy *policy) | |||
| 	freq_data.gpstate_id = idx_to_pstate(powernv_pstate_info.min); | ||||
| 	smp_call_function_single(policy->cpu, set_pstate, &freq_data, 1); | ||||
| 	if (gpstates) | ||||
| 		del_timer_sync(&gpstates->timer); | ||||
| 		timer_delete_sync(&gpstates->timer); | ||||
| 
 | ||||
| 	kfree(policy->driver_data); | ||||
| } | ||||
|  |  | |||
|  | @ -2067,7 +2067,7 @@ static void artpec6_crypto_process_queue(struct artpec6_crypto *ac, | |||
| 	if (ac->pending_count) | ||||
| 		mod_timer(&ac->timer, jiffies + msecs_to_jiffies(100)); | ||||
| 	else | ||||
| 		del_timer(&ac->timer); | ||||
| 		timer_delete(&ac->timer); | ||||
| } | ||||
| 
 | ||||
| static void artpec6_crypto_timeout(struct timer_list *t) | ||||
|  | @ -2963,7 +2963,7 @@ static void artpec6_crypto_remove(struct platform_device *pdev) | |||
| 	tasklet_disable(&ac->task); | ||||
| 	devm_free_irq(&pdev->dev, irq, ac); | ||||
| 	tasklet_kill(&ac->task); | ||||
| 	del_timer_sync(&ac->timer); | ||||
| 	timer_delete_sync(&ac->timer); | ||||
| 
 | ||||
| 	artpec6_crypto_disable_hw(ac); | ||||
| 
 | ||||
|  |  | |||
|  | @ -412,7 +412,7 @@ static int test_wait_timeout(void *arg) | |||
| 
 | ||||
| 	err = 0; | ||||
| err_free: | ||||
| 	del_timer_sync(&wt.timer); | ||||
| 	timer_delete_sync(&wt.timer); | ||||
| 	destroy_timer_on_stack(&wt.timer); | ||||
| 	dma_fence_signal(wt.f); | ||||
| 	dma_fence_put(wt.f); | ||||
|  |  | |||
|  | @ -324,7 +324,7 @@ static void imxdma_disable_hw(struct imxdma_channel *imxdmac) | |||
| 	dev_dbg(imxdma->dev, "%s channel %d\n", __func__, channel); | ||||
| 
 | ||||
| 	if (imxdma_hw_chain(imxdmac)) | ||||
| 		del_timer(&imxdmac->watchdog); | ||||
| 		timer_delete(&imxdmac->watchdog); | ||||
| 
 | ||||
| 	local_irq_save(flags); | ||||
| 	imx_dmav1_writel(imxdma, imx_dmav1_readl(imxdma, DMA_DIMR) | | ||||
|  | @ -454,7 +454,7 @@ static void dma_irq_handle_channel(struct imxdma_channel *imxdmac) | |||
| 		} | ||||
| 
 | ||||
| 		if (imxdma_hw_chain(imxdmac)) { | ||||
| 			del_timer(&imxdmac->watchdog); | ||||
| 			timer_delete(&imxdmac->watchdog); | ||||
| 			return; | ||||
| 		} | ||||
| 	} | ||||
|  |  | |||
|  | @ -159,7 +159,7 @@ void ioat_stop(struct ioatdma_chan *ioat_chan) | |||
| 	} | ||||
| 
 | ||||
| 	/* flush inflight timers */ | ||||
| 	del_timer_sync(&ioat_chan->timer); | ||||
| 	timer_delete_sync(&ioat_chan->timer); | ||||
| 
 | ||||
| 	/* flush inflight tasklet runs */ | ||||
| 	tasklet_kill(&ioat_chan->cleanup_task); | ||||
|  |  | |||
|  | @ -1224,12 +1224,12 @@ static void ioat_shutdown(struct pci_dev *pdev) | |||
| 		set_bit(IOAT_CHAN_DOWN, &ioat_chan->state); | ||||
| 		spin_unlock_bh(&ioat_chan->prep_lock); | ||||
| 		/*
 | ||||
| 		 * Synchronization rule for del_timer_sync(): | ||||
| 		 * Synchronization rule for timer_delete_sync(): | ||||
| 		 *  - The caller must not hold locks which would prevent | ||||
| 		 *    completion of the timer's handler. | ||||
| 		 * So prep_lock cannot be held before calling it. | ||||
| 		 */ | ||||
| 		del_timer_sync(&ioat_chan->timer); | ||||
| 		timer_delete_sync(&ioat_chan->timer); | ||||
| 
 | ||||
| 		/* this should quiesce then reset */ | ||||
| 		ioat_reset_hw(ioat_chan); | ||||
|  |  | |||
|  | @ -39,7 +39,7 @@ | |||
| static int try_cancel_split_timeout(struct fw_transaction *t) | ||||
| { | ||||
| 	if (t->is_split_transaction) | ||||
| 		return del_timer(&t->split_timeout_timer); | ||||
| 		return timer_delete(&t->split_timeout_timer); | ||||
| 	else | ||||
| 		return 1; | ||||
| } | ||||
|  |  | |||
|  | @ -342,7 +342,7 @@ static int suspend_test_thread(void *arg) | |||
| 	 * Disable the timer to make sure that the timer will not trigger | ||||
| 	 * later. | ||||
| 	 */ | ||||
| 	del_timer(&wakeup_timer); | ||||
| 	timer_delete(&wakeup_timer); | ||||
| 	destroy_timer_on_stack(&wakeup_timer); | ||||
| 
 | ||||
| 	if (atomic_dec_return_relaxed(&nb_active_threads) == 0) | ||||
|  |  | |||
|  | @ -280,7 +280,7 @@ bool amdgpu_fence_process(struct amdgpu_ring *ring) | |||
| 
 | ||||
| 	} while (atomic_cmpxchg(&drv->last_seq, last_seq, seq) != last_seq); | ||||
| 
 | ||||
| 	if (del_timer(&ring->fence_drv.fallback_timer) && | ||||
| 	if (timer_delete(&ring->fence_drv.fallback_timer) && | ||||
| 	    seq != ring->fence_drv.sync_seq) | ||||
| 		amdgpu_fence_schedule_fallback(ring); | ||||
| 
 | ||||
|  | @ -618,7 +618,7 @@ void amdgpu_fence_driver_hw_fini(struct amdgpu_device *adev) | |||
| 			amdgpu_irq_put(adev, ring->fence_drv.irq_src, | ||||
| 				       ring->fence_drv.irq_type); | ||||
| 
 | ||||
| 		del_timer_sync(&ring->fence_drv.fallback_timer); | ||||
| 		timer_delete_sync(&ring->fence_drv.fallback_timer); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -1239,7 +1239,7 @@ void amdgpu_mes_remove_ring(struct amdgpu_device *adev, | |||
| 		return; | ||||
| 
 | ||||
| 	amdgpu_mes_remove_hw_queue(adev, ring->hw_queue_id); | ||||
| 	del_timer_sync(&ring->fence_drv.fallback_timer); | ||||
| 	timer_delete_sync(&ring->fence_drv.fallback_timer); | ||||
| 	amdgpu_ring_fini(ring); | ||||
| 	kfree(ring); | ||||
| } | ||||
|  |  | |||
|  | @ -124,7 +124,7 @@ static void amdgpu_mux_resubmit_chunks(struct amdgpu_ring_mux *mux) | |||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	del_timer(&mux->resubmit_timer); | ||||
| 	timer_delete(&mux->resubmit_timer); | ||||
| 	mux->s_resubmit = false; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -1763,7 +1763,7 @@ static void tda998x_destroy(struct device *dev) | |||
| 	if (priv->hdmi->irq) | ||||
| 		free_irq(priv->hdmi->irq, priv); | ||||
| 
 | ||||
| 	del_timer_sync(&priv->edid_delay_timer); | ||||
| 	timer_delete_sync(&priv->edid_delay_timer); | ||||
| 	cancel_work_sync(&priv->detect_work); | ||||
| 
 | ||||
| 	i2c_unregister_device(priv->cec); | ||||
|  |  | |||
|  | @ -508,7 +508,7 @@ static void drm_vblank_init_release(struct drm_device *dev, void *ptr) | |||
| 		    drm_core_check_feature(dev, DRIVER_MODESET)); | ||||
| 
 | ||||
| 	drm_vblank_destroy_worker(vblank); | ||||
| 	del_timer_sync(&vblank->disable_timer); | ||||
| 	timer_delete_sync(&vblank->disable_timer); | ||||
| } | ||||
| 
 | ||||
| /**
 | ||||
|  |  | |||
|  | @ -427,7 +427,7 @@ static void vidi_unbind(struct device *dev, struct device *master, void *data) | |||
| { | ||||
| 	struct vidi_context *ctx = dev_get_drvdata(dev); | ||||
| 
 | ||||
| 	del_timer_sync(&ctx->timer); | ||||
| 	timer_delete_sync(&ctx->timer); | ||||
| } | ||||
| 
 | ||||
| static const struct component_ops vidi_component_ops = { | ||||
|  |  | |||
|  | @ -254,7 +254,7 @@ static int gud_usb_bulk(struct gud_device *gdrm, size_t len) | |||
| 
 | ||||
| 	usb_sg_wait(&ctx.sgr); | ||||
| 
 | ||||
| 	if (!del_timer_sync(&ctx.timer)) | ||||
| 	if (!timer_delete_sync(&ctx.timer)) | ||||
| 		ret = -ETIMEDOUT; | ||||
| 	else if (ctx.sgr.status < 0) | ||||
| 		ret = ctx.sgr.status; | ||||
|  |  | |||
|  | @ -2502,7 +2502,7 @@ static void execlists_irq_handler(struct intel_engine_cs *engine, u16 iir) | |||
| 			   ENGINE_READ_FW(engine, RING_EXECLIST_STATUS_HI)); | ||||
| 		ENGINE_TRACE(engine, "semaphore yield: %08x\n", | ||||
| 			     engine->execlists.yield); | ||||
| 		if (del_timer(&engine->execlists.timer)) | ||||
| 		if (timer_delete(&engine->execlists.timer)) | ||||
| 			tasklet = true; | ||||
| 	} | ||||
| 
 | ||||
|  | @ -3370,8 +3370,8 @@ static void execlists_set_default_submission(struct intel_engine_cs *engine) | |||
| static void execlists_shutdown(struct intel_engine_cs *engine) | ||||
| { | ||||
| 	/* Synchronise with residual timers and any softirq they raise */ | ||||
| 	del_timer_sync(&engine->execlists.timer); | ||||
| 	del_timer_sync(&engine->execlists.preempt); | ||||
| 	timer_delete_sync(&engine->execlists.timer); | ||||
| 	timer_delete_sync(&engine->execlists.preempt); | ||||
| 	tasklet_kill(&engine->sched_engine->tasklet); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -161,7 +161,7 @@ static void rps_start_timer(struct intel_rps *rps) | |||
| 
 | ||||
| static void rps_stop_timer(struct intel_rps *rps) | ||||
| { | ||||
| 	del_timer_sync(&rps->timer); | ||||
| 	timer_delete_sync(&rps->timer); | ||||
| 	rps->pm_timestamp = ktime_sub(ktime_get(), rps->pm_timestamp); | ||||
| 	cancel_work_sync(&rps->work); | ||||
| } | ||||
|  |  | |||
|  | @ -297,7 +297,7 @@ static void mock_reset_cancel(struct intel_engine_cs *engine) | |||
| 	struct i915_request *rq; | ||||
| 	unsigned long flags; | ||||
| 
 | ||||
| 	del_timer_sync(&mock->hw_delay); | ||||
| 	timer_delete_sync(&mock->hw_delay); | ||||
| 
 | ||||
| 	spin_lock_irqsave(&engine->sched_engine->lock, flags); | ||||
| 
 | ||||
|  | @ -432,7 +432,7 @@ void mock_engine_flush(struct intel_engine_cs *engine) | |||
| 		container_of(engine, typeof(*mock), base); | ||||
| 	struct i915_request *request, *rn; | ||||
| 
 | ||||
| 	del_timer_sync(&mock->hw_delay); | ||||
| 	timer_delete_sync(&mock->hw_delay); | ||||
| 
 | ||||
| 	spin_lock_irq(&mock->hw_lock); | ||||
| 	list_for_each_entry_safe(request, rn, &mock->hw_queue, mock.link) | ||||
|  |  | |||
|  | @ -1198,7 +1198,7 @@ static int live_timeslice_rewind(void *arg) | |||
| 		ENGINE_TRACE(engine, "forcing tasklet for rewind\n"); | ||||
| 		while (i915_request_is_active(rq[A2])) { /* semaphore yield! */ | ||||
| 			/* Wait for the timeslice to kick in */ | ||||
| 			del_timer(&engine->execlists.timer); | ||||
| 			timer_delete(&engine->execlists.timer); | ||||
| 			tasklet_hi_schedule(&engine->sched_engine->tasklet); | ||||
| 			intel_engine_flush_submission(engine); | ||||
| 		} | ||||
|  | @ -2357,7 +2357,7 @@ static int __cancel_fail(struct live_preempt_cancel *arg) | |||
| 	/* force preempt reset [failure] */ | ||||
| 	while (!engine->execlists.pending[0]) | ||||
| 		intel_engine_flush_submission(engine); | ||||
| 	del_timer_sync(&engine->execlists.preempt); | ||||
| 	timer_delete_sync(&engine->execlists.preempt); | ||||
| 	intel_engine_flush_submission(engine); | ||||
| 
 | ||||
| 	cancel_reset_timeout(engine); | ||||
|  |  | |||
|  | @ -660,7 +660,7 @@ static int live_emit_pte_full_ring(void *arg) | |||
| 
 | ||||
| out_rq: | ||||
| 	i915_request_add(rq); /* GEM_BUG_ON(rq->reserved_space > ring->space)? */ | ||||
| 	del_timer_sync(&st.timer); | ||||
| 	timer_delete_sync(&st.timer); | ||||
| 	destroy_timer_on_stack(&st.timer); | ||||
| out_unpin: | ||||
| 	intel_context_unpin(ce); | ||||
|  |  | |||
|  | @ -52,7 +52,7 @@ void cancel_timer(struct timer_list *t) | |||
| 	if (!timer_active(t)) | ||||
| 		return; | ||||
| 
 | ||||
| 	del_timer(t); | ||||
| 	timer_delete(t); | ||||
| 	WRITE_ONCE(t->expires, 0); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -163,7 +163,7 @@ void intel_wakeref_auto(struct intel_wakeref_auto *wf, unsigned long timeout) | |||
| 	unsigned long flags; | ||||
| 
 | ||||
| 	if (!timeout) { | ||||
| 		if (del_timer_sync(&wf->timer)) | ||||
| 		if (timer_delete_sync(&wf->timer)) | ||||
| 			wakeref_auto_timeout(&wf->timer); | ||||
| 		return; | ||||
| 	} | ||||
|  |  | |||
|  | @ -74,7 +74,7 @@ void timed_fence_init(struct timed_fence *tf, unsigned long expires) | |||
| 
 | ||||
| void timed_fence_fini(struct timed_fence *tf) | ||||
| { | ||||
| 	if (del_timer_sync(&tf->timer)) | ||||
| 	if (timer_delete_sync(&tf->timer)) | ||||
| 		i915_sw_fence_commit(&tf->fence); | ||||
| 
 | ||||
| 	destroy_timer_on_stack(&tf->timer); | ||||
|  |  | |||
|  | @ -2847,7 +2847,7 @@ static void mtk_dp_remove(struct platform_device *pdev) | |||
| 	pm_runtime_put(&pdev->dev); | ||||
| 	pm_runtime_disable(&pdev->dev); | ||||
| 	if (mtk_dp->data->bridge_type != DRM_MODE_CONNECTOR_eDP) | ||||
| 		del_timer_sync(&mtk_dp->debounce_timer); | ||||
| 		timer_delete_sync(&mtk_dp->debounce_timer); | ||||
| 	platform_device_unregister(mtk_dp->phy_dev); | ||||
| 	if (mtk_dp->audio_pdev) | ||||
| 		platform_device_unregister(mtk_dp->audio_pdev); | ||||
|  |  | |||
|  | @ -1253,7 +1253,7 @@ static void a5xx_fault_detect_irq(struct msm_gpu *gpu) | |||
| 		gpu_read(gpu, REG_A5XX_CP_IB2_BUFSZ)); | ||||
| 
 | ||||
| 	/* Turn off the hangcheck timer to keep it from bothering us */ | ||||
| 	del_timer(&gpu->hangcheck_timer); | ||||
| 	timer_delete(&gpu->hangcheck_timer); | ||||
| 
 | ||||
| 	kthread_queue_work(gpu->worker, &gpu->recover_work); | ||||
| } | ||||
|  |  | |||
|  | @ -182,7 +182,7 @@ void a5xx_preempt_irq(struct msm_gpu *gpu) | |||
| 		return; | ||||
| 
 | ||||
| 	/* Delete the preemption watchdog timer */ | ||||
| 	del_timer(&a5xx_gpu->preempt_timer); | ||||
| 	timer_delete(&a5xx_gpu->preempt_timer); | ||||
| 
 | ||||
| 	/*
 | ||||
| 	 * The hardware should be setting CP_CONTEXT_SWITCH_CNTL to zero before | ||||
|  |  | |||
|  | @ -28,7 +28,7 @@ static void a6xx_gmu_fault(struct a6xx_gmu *gmu) | |||
| 	gmu->hung = true; | ||||
| 
 | ||||
| 	/* Turn off the hangcheck timer while we are resetting */ | ||||
| 	del_timer(&gpu->hangcheck_timer); | ||||
| 	timer_delete(&gpu->hangcheck_timer); | ||||
| 
 | ||||
| 	/* Queue the GPU handler because we need to treat this as a recovery */ | ||||
| 	kthread_queue_work(gpu->worker, &gpu->recover_work); | ||||
|  |  | |||
|  | @ -1706,7 +1706,7 @@ static void a6xx_fault_detect_irq(struct msm_gpu *gpu) | |||
| 		gpu_read(gpu, REG_A6XX_CP_IB2_REM_SIZE)); | ||||
| 
 | ||||
| 	/* Turn off the hangcheck timer to keep it from bothering us */ | ||||
| 	del_timer(&gpu->hangcheck_timer); | ||||
| 	timer_delete(&gpu->hangcheck_timer); | ||||
| 
 | ||||
| 	kthread_queue_work(gpu->worker, &gpu->recover_work); | ||||
| } | ||||
|  | @ -1726,7 +1726,7 @@ static void a7xx_sw_fuse_violation_irq(struct msm_gpu *gpu) | |||
| 	 */ | ||||
| 	if (status & (A7XX_CX_MISC_SW_FUSE_VALUE_RAYTRACING | | ||||
| 		      A7XX_CX_MISC_SW_FUSE_VALUE_LPAC)) { | ||||
| 		del_timer(&gpu->hangcheck_timer); | ||||
| 		timer_delete(&gpu->hangcheck_timer); | ||||
| 
 | ||||
| 		kthread_queue_work(gpu->worker, &gpu->recover_work); | ||||
| 	} | ||||
|  |  | |||
|  | @ -146,7 +146,7 @@ void a6xx_preempt_irq(struct msm_gpu *gpu) | |||
| 		return; | ||||
| 
 | ||||
| 	/* Delete the preemption watchdog timer */ | ||||
| 	del_timer(&a6xx_gpu->preempt_timer); | ||||
| 	timer_delete(&a6xx_gpu->preempt_timer); | ||||
| 
 | ||||
| 	/*
 | ||||
| 	 * The hardware should be setting the stop bit of CP_CONTEXT_SWITCH_CNTL | ||||
|  |  | |||
|  | @ -292,7 +292,7 @@ int adreno_fault_handler(struct msm_gpu *gpu, unsigned long iova, int flags, | |||
| 
 | ||||
| 	if (do_devcoredump) { | ||||
| 		/* Turn off the hangcheck timer to keep it from bothering us */ | ||||
| 		del_timer(&gpu->hangcheck_timer); | ||||
| 		timer_delete(&gpu->hangcheck_timer); | ||||
| 
 | ||||
| 		gpu->fault_info.ttbr0 = info->ttbr0; | ||||
| 		gpu->fault_info.iova  = iova; | ||||
|  |  | |||
|  | @ -1410,7 +1410,7 @@ static void dpu_encoder_virt_atomic_disable(struct drm_encoder *drm_enc, | |||
| 	/* after phys waits for frame-done, should be no more frames pending */ | ||||
| 	if (atomic_xchg(&dpu_enc->frame_done_timeout_ms, 0)) { | ||||
| 		DPU_ERROR("enc%d timeout pending\n", drm_enc->base.id); | ||||
| 		del_timer_sync(&dpu_enc->frame_done_timer); | ||||
| 		timer_delete_sync(&dpu_enc->frame_done_timer); | ||||
| 	} | ||||
| 
 | ||||
| 	dpu_encoder_resource_control(drm_enc, DPU_ENC_RC_EVENT_STOP); | ||||
|  | @ -1582,7 +1582,7 @@ void dpu_encoder_frame_done_callback( | |||
| 
 | ||||
| 		if (!dpu_enc->frame_busy_mask[0]) { | ||||
| 			atomic_set(&dpu_enc->frame_done_timeout_ms, 0); | ||||
| 			del_timer(&dpu_enc->frame_done_timer); | ||||
| 			timer_delete(&dpu_enc->frame_done_timer); | ||||
| 
 | ||||
| 			dpu_encoder_resource_control(drm_enc, | ||||
| 					DPU_ENC_RC_EVENT_FRAME_DONE); | ||||
|  |  | |||
|  | @ -452,7 +452,7 @@ static irqreturn_t omap_dsi_irq_handler(int irq, void *arg) | |||
| 
 | ||||
| #ifdef DSI_CATCH_MISSING_TE | ||||
| 	if (irqstatus & DSI_IRQ_TE_TRIGGER) | ||||
| 		del_timer(&dsi->te_timer); | ||||
| 		timer_delete(&dsi->te_timer); | ||||
| #endif | ||||
| 
 | ||||
| 	/* make a copy and unlock, so that isrs can unregister
 | ||||
|  |  | |||
|  | @ -1043,7 +1043,7 @@ static void vc4_bo_cache_destroy(struct drm_device *dev, void *unused) | |||
| 	struct vc4_dev *vc4 = to_vc4_dev(dev); | ||||
| 	int i; | ||||
| 
 | ||||
| 	del_timer(&vc4->bo_cache.time_timer); | ||||
| 	timer_delete(&vc4->bo_cache.time_timer); | ||||
| 	cancel_work_sync(&vc4->bo_cache.time_work); | ||||
| 
 | ||||
| 	vc4_bo_cache_purge(dev); | ||||
|  |  | |||
|  | @ -49,7 +49,7 @@ static void vgem_fence_release(struct dma_fence *base) | |||
| { | ||||
| 	struct vgem_fence *fence = container_of(base, typeof(*fence), base); | ||||
| 
 | ||||
| 	del_timer_sync(&fence->timer); | ||||
| 	timer_delete_sync(&fence->timer); | ||||
| 	dma_fence_free(&fence->base); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
Some files were not shown because too many files have changed in this diff Show more
		Loading…
	
		Reference in a new issue
	
	 Thomas Gleixner
						Thomas Gleixner