treewide: Switch/rename to timer_delete[_sync]()
JIRA: https://issues.redhat.com/browse/RHEL-80658 Conflicts: Onlyt sound/ tree commit 8fa7292fee5c5240402371ea89ab285ec856c916 Author: Thomas Gleixner <tglx@linutronix.de> Date: Sat Apr 5 10:17:26 2025 +0200 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> Signed-off-by: Jaroslav Kysela <jkysela@redhat.com>
This commit is contained in:
parent
eb99caf326
commit
86cab540da
|
@ -1152,7 +1152,7 @@ static int snd_timer_s_stop(struct snd_timer * timer)
|
|||
unsigned long jiff;
|
||||
|
||||
priv = (struct snd_timer_system_private *) timer->private_data;
|
||||
del_timer(&priv->tlist);
|
||||
timer_delete(&priv->tlist);
|
||||
jiff = jiffies;
|
||||
if (time_before(jiff, priv->last_expires))
|
||||
timer->sticks = priv->last_expires - jiff;
|
||||
|
@ -1167,7 +1167,7 @@ static int snd_timer_s_close(struct snd_timer *timer)
|
|||
struct snd_timer_system_private *priv;
|
||||
|
||||
priv = (struct snd_timer_system_private *)timer->private_data;
|
||||
del_timer_sync(&priv->tlist);
|
||||
timer_delete_sync(&priv->tlist);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -261,7 +261,7 @@ static int loopback_snd_timer_start(struct loopback_pcm *dpcm)
|
|||
/* call in cable->lock */
|
||||
static inline int loopback_jiffies_timer_stop(struct loopback_pcm *dpcm)
|
||||
{
|
||||
del_timer(&dpcm->timer);
|
||||
timer_delete(&dpcm->timer);
|
||||
dpcm->timer.expires = 0;
|
||||
|
||||
return 0;
|
||||
|
@ -292,7 +292,7 @@ static int loopback_snd_timer_stop(struct loopback_pcm *dpcm)
|
|||
|
||||
static inline int loopback_jiffies_timer_stop_sync(struct loopback_pcm *dpcm)
|
||||
{
|
||||
del_timer_sync(&dpcm->timer);
|
||||
timer_delete_sync(&dpcm->timer);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -279,7 +279,7 @@ static int dummy_systimer_stop(struct snd_pcm_substream *substream)
|
|||
{
|
||||
struct dummy_systimer_pcm *dpcm = substream->runtime->private_data;
|
||||
spin_lock(&dpcm->lock);
|
||||
del_timer(&dpcm->timer);
|
||||
timer_delete(&dpcm->timer);
|
||||
spin_unlock(&dpcm->lock);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -197,7 +197,7 @@ static void snd_mpu401_uart_remove_timer (struct snd_mpu401 *mpu, int input)
|
|||
mpu->timer_invoked &= input ? ~MPU401_MODE_INPUT_TIMER :
|
||||
~MPU401_MODE_OUTPUT_TIMER;
|
||||
if (! mpu->timer_invoked)
|
||||
del_timer(&mpu->timer);
|
||||
timer_delete(&mpu->timer);
|
||||
}
|
||||
spin_unlock_irqrestore (&mpu->timer_lock, flags);
|
||||
}
|
||||
|
|
|
@ -412,7 +412,7 @@ static void snd_mtpav_add_output_timer(struct mtpav *chip)
|
|||
/* spinlock held! */
|
||||
static void snd_mtpav_remove_output_timer(struct mtpav *chip)
|
||||
{
|
||||
del_timer(&chip->timer);
|
||||
timer_delete(&chip->timer);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -74,7 +74,7 @@ void snd_opl3_synth_cleanup(struct snd_opl3 * opl3)
|
|||
/* Stop system timer */
|
||||
spin_lock_irqsave(&opl3->sys_timer_lock, flags);
|
||||
if (opl3->sys_timer_status) {
|
||||
del_timer(&opl3->tlist);
|
||||
timer_delete(&opl3->tlist);
|
||||
opl3->sys_timer_status = 0;
|
||||
}
|
||||
spin_unlock_irqrestore(&opl3->sys_timer_lock, flags);
|
||||
|
|
|
@ -166,7 +166,7 @@ static inline void snd_uart16550_add_timer(struct snd_uart16550 *uart)
|
|||
static inline void snd_uart16550_del_timer(struct snd_uart16550 *uart)
|
||||
{
|
||||
if (uart->timer_running) {
|
||||
del_timer(&uart->buffer_timer);
|
||||
timer_delete(&uart->buffer_timer);
|
||||
uart->timer_running = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@ void snd_ak4117_reinit(struct ak4117 *chip)
|
|||
{
|
||||
unsigned char old = chip->regmap[AK4117_REG_PWRDN], reg;
|
||||
|
||||
del_timer(&chip->timer);
|
||||
timer_delete(&chip->timer);
|
||||
chip->init = 1;
|
||||
/* bring the chip to reset state and powerdown state */
|
||||
reg_write(chip, AK4117_REG_PWRDN, 0);
|
||||
|
|
|
@ -364,7 +364,7 @@ static void stop_voice(struct snd_emu8k_pcm *rec, int ch)
|
|||
/* stop timer */
|
||||
spin_lock_irqsave(&rec->timer_lock, flags);
|
||||
if (rec->timer_running) {
|
||||
del_timer(&rec->timer);
|
||||
timer_delete(&rec->timer);
|
||||
rec->timer_running = 0;
|
||||
}
|
||||
spin_unlock_irqrestore(&rec->timer_lock, flags);
|
||||
|
|
|
@ -125,7 +125,7 @@ static int snd_sb8dsp_midi_output_close(struct snd_rawmidi_substream *substream)
|
|||
struct snd_sb *chip;
|
||||
|
||||
chip = substream->rmidi->private_data;
|
||||
del_timer_sync(&chip->midi_timer);
|
||||
timer_delete_sync(&chip->midi_timer);
|
||||
spin_lock_irqsave(&chip->open_lock, flags);
|
||||
chip->open &= ~(SB_OPEN_MIDI_OUTPUT | SB_OPEN_MIDI_OUTPUT_TRIGGER);
|
||||
chip->midi_substream_output = NULL;
|
||||
|
@ -174,7 +174,7 @@ static void snd_sb8dsp_midi_output_write(struct snd_rawmidi_substream *substream
|
|||
spin_lock_irqsave(&chip->open_lock, flags);
|
||||
if (snd_rawmidi_transmit_peek(substream, &byte, 1) != 1) {
|
||||
chip->open &= ~SB_OPEN_MIDI_OUTPUT_TRIGGER;
|
||||
del_timer(&chip->midi_timer);
|
||||
timer_delete(&chip->midi_timer);
|
||||
spin_unlock_irqrestore(&chip->open_lock, flags);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -157,7 +157,7 @@ static void snd_wavefront_midi_output_write(snd_wavefront_card_t *card)
|
|||
} else {
|
||||
if (midi->istimer) {
|
||||
if (--midi->istimer <= 0)
|
||||
del_timer(&midi->timer);
|
||||
timer_delete(&midi->timer);
|
||||
}
|
||||
midi->mode[midi->output_mpu] &= ~MPU401_MODE_OUTPUT_TRIGGER;
|
||||
spin_unlock_irqrestore (&midi->virtual, flags);
|
||||
|
@ -212,7 +212,7 @@ static void snd_wavefront_midi_output_write(snd_wavefront_card_t *card)
|
|||
__timer:
|
||||
if (midi->istimer) {
|
||||
if (--midi->istimer <= 0)
|
||||
del_timer(&midi->timer);
|
||||
timer_delete(&midi->timer);
|
||||
}
|
||||
midi->mode[mpu] &= ~MPU401_MODE_OUTPUT_TRIGGER;
|
||||
spin_unlock_irqrestore (&midi->virtual, flags);
|
||||
|
|
|
@ -518,7 +518,7 @@ static void snd_card_asihpi_pcm_timer_stop(struct snd_pcm_substream *substream)
|
|||
struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
|
||||
|
||||
dpcm->respawn_timer = 0;
|
||||
del_timer(&dpcm->timer);
|
||||
timer_delete(&dpcm->timer);
|
||||
}
|
||||
|
||||
static void snd_card_asihpi_pcm_int_start(struct snd_pcm_substream *substream)
|
||||
|
|
|
@ -112,7 +112,7 @@ static void ct_systimer_stop(struct ct_timer_instance *ti)
|
|||
|
||||
spin_lock_irqsave(&ti->lock, flags);
|
||||
ti->running = 0;
|
||||
del_timer(&ti->timer);
|
||||
timer_delete(&ti->timer);
|
||||
spin_unlock_irqrestore(&ti->lock, flags);
|
||||
}
|
||||
|
||||
|
|
|
@ -264,7 +264,7 @@ static void snd_echo_midi_output_trigger(struct snd_rawmidi_substream *substream
|
|||
if (chip->tinuse) {
|
||||
chip->tinuse = 0;
|
||||
spin_unlock_irq(&chip->lock);
|
||||
del_timer_sync(&chip->timer);
|
||||
timer_delete_sync(&chip->timer);
|
||||
dev_dbg(chip->card->dev, "Timer removed\n");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1427,7 +1427,7 @@ static void snd_hdsp_midi_output_trigger(struct snd_rawmidi_substream *substream
|
|||
}
|
||||
} else {
|
||||
if (hmidi->istimer && --hmidi->istimer <= 0)
|
||||
del_timer (&hmidi->timer);
|
||||
timer_delete(&hmidi->timer);
|
||||
}
|
||||
spin_unlock_irqrestore (&hmidi->lock, flags);
|
||||
if (up)
|
||||
|
|
|
@ -1978,7 +1978,7 @@ snd_hdspm_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
|
|||
}
|
||||
} else {
|
||||
if (hmidi->istimer && --hmidi->istimer <= 0)
|
||||
del_timer (&hmidi->timer);
|
||||
timer_delete(&hmidi->timer);
|
||||
}
|
||||
spin_unlock_irqrestore (&hmidi->lock, flags);
|
||||
if (up)
|
||||
|
|
|
@ -354,7 +354,7 @@ static int snd_aicapcm_pcm_sync_stop(struct snd_pcm_substream *substream)
|
|||
{
|
||||
struct snd_card_aica *dreamcastcard = substream->pcm->private_data;
|
||||
|
||||
del_timer_sync(&dreamcastcard->timer);
|
||||
timer_delete_sync(&dreamcastcard->timer);
|
||||
cancel_work_sync(&dreamcastcard->spu_dma_work);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -4286,7 +4286,7 @@ static void rt5645_i2c_remove(struct i2c_client *i2c)
|
|||
* Since the rt5645_btn_check_callback() can queue jack_detect_work,
|
||||
* the timer need to be delted first
|
||||
*/
|
||||
del_timer_sync(&rt5645->btn_check_timer);
|
||||
timer_delete_sync(&rt5645->btn_check_timer);
|
||||
|
||||
cancel_delayed_work_sync(&rt5645->jack_detect_work);
|
||||
cancel_delayed_work_sync(&rt5645->rcclock_work);
|
||||
|
@ -4318,7 +4318,7 @@ static int rt5645_sys_suspend(struct device *dev)
|
|||
{
|
||||
struct rt5645_priv *rt5645 = dev_get_drvdata(dev);
|
||||
|
||||
del_timer_sync(&rt5645->btn_check_timer);
|
||||
timer_delete_sync(&rt5645->btn_check_timer);
|
||||
cancel_delayed_work_sync(&rt5645->jack_detect_work);
|
||||
cancel_delayed_work_sync(&rt5645->rcclock_work);
|
||||
|
||||
|
|
|
@ -301,7 +301,7 @@ static int imx_rpmsg_pcm_close(struct snd_soc_component *component,
|
|||
|
||||
info->send_message(msg, info);
|
||||
|
||||
del_timer(&info->stream_timer[substream->stream].timer);
|
||||
timer_delete(&info->stream_timer[substream->stream].timer);
|
||||
|
||||
rtd->dai_link->ignore_suspend = 0;
|
||||
|
||||
|
@ -452,7 +452,7 @@ static int imx_rpmsg_terminate_all(struct snd_soc_component *component,
|
|||
info->msg[RX_POINTER].r_msg.param.buffer_offset = 0;
|
||||
}
|
||||
|
||||
del_timer(&info->stream_timer[substream->stream].timer);
|
||||
timer_delete(&info->stream_timer[substream->stream].timer);
|
||||
|
||||
return imx_rpmsg_insert_workqueue(substream, msg, info);
|
||||
}
|
||||
|
|
|
@ -303,7 +303,7 @@ static void cx81801_close(struct tty_struct *tty)
|
|||
struct snd_soc_component *component = tty->disc_data;
|
||||
struct snd_soc_dapm_context *dapm;
|
||||
|
||||
del_timer_sync(&cx81801_timer);
|
||||
timer_delete_sync(&cx81801_timer);
|
||||
|
||||
/* Prevent the hook switch from further changing the DAPM pins */
|
||||
INIT_LIST_HEAD(&ams_delta_hook_switch.pins);
|
||||
|
|
|
@ -1553,7 +1553,7 @@ void snd_usbmidi_disconnect(struct list_head *p)
|
|||
spin_unlock_irq(&umidi->disc_lock);
|
||||
up_write(&umidi->disc_rwsem);
|
||||
|
||||
del_timer_sync(&umidi->error_timer);
|
||||
timer_delete_sync(&umidi->error_timer);
|
||||
|
||||
for (i = 0; i < MIDI_MAX_ENDPOINTS; ++i) {
|
||||
struct snd_usb_midi_endpoint *ep = &umidi->endpoints[i];
|
||||
|
|
Loading…
Reference in New Issue