diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2006-03-31 05:36:14 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-03-31 10:59:01 -0500 |
commit | ce7415f496e21775156b08452d22211f8c3ccc53 (patch) | |
tree | aafaca46c062bad4225225e6383d377beea26285 /sound/pci | |
parent | 89be83f8eef781a801898c08a5317ed463fe872f (diff) |
[ALSA] sound/pci/hda: use create_singlethread_workqueue()
process_unsol_events() seems to assume a singlethread one (IOW, racey).
So, this patch uses create_singlethread_workqueue() instead of
create_workqueue().
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index b42dff7ceed0..5bee3b536478 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -295,7 +295,7 @@ static int init_unsol_queue(struct hda_bus *bus) | |||
295 | snd_printk(KERN_ERR "hda_codec: can't allocate unsolicited queue\n"); | 295 | snd_printk(KERN_ERR "hda_codec: can't allocate unsolicited queue\n"); |
296 | return -ENOMEM; | 296 | return -ENOMEM; |
297 | } | 297 | } |
298 | unsol->workq = create_workqueue("hda_codec"); | 298 | unsol->workq = create_singlethread_workqueue("hda_codec"); |
299 | if (! unsol->workq) { | 299 | if (! unsol->workq) { |
300 | snd_printk(KERN_ERR "hda_codec: can't create workqueue\n"); | 300 | snd_printk(KERN_ERR "hda_codec: can't create workqueue\n"); |
301 | kfree(unsol); | 301 | kfree(unsol); |