mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
[ALSA] Remove spinlocks around proc prints
Don't lock during showing proc read. snd_iprintf() might sleep. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
bf850204a7
commit
d689e34b52
2 changed files with 0 additions and 8 deletions
|
@ -1095,7 +1095,6 @@ static void snd_timer_proc_read(struct snd_info_entry *entry,
|
|||
if (timer->hw.flags & SNDRV_TIMER_HW_SLAVE)
|
||||
snd_iprintf(buffer, " SLAVE");
|
||||
snd_iprintf(buffer, "\n");
|
||||
spin_lock_irqsave(&timer->lock, flags);
|
||||
list_for_each(q, &timer->open_list_head) {
|
||||
ti = list_entry(q, struct snd_timer_instance, open_list);
|
||||
snd_iprintf(buffer, " Client %s : %s\n",
|
||||
|
@ -1104,7 +1103,6 @@ static void snd_timer_proc_read(struct snd_info_entry *entry,
|
|||
SNDRV_TIMER_IFLG_RUNNING)
|
||||
? "running" : "stopped");
|
||||
}
|
||||
spin_unlock_irqrestore(&timer->lock, flags);
|
||||
}
|
||||
mutex_unlock(®ister_mutex);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue