diff options
author | Jaroslav Kysela <perex@perex.cz> | 2010-01-21 04:32:15 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-01-21 04:32:15 -0500 |
commit | c91a988dc6551c66418690e36b2a23cdb0255da8 (patch) | |
tree | cbb408377b15488d4b45feb2f3d88a616f159814 /sound/core/pcm.c | |
parent | d1db38c015a392b0ea8c15ab95abb3ee768b8d47 (diff) |
ALSA: pcm_core: Fix wake_up() optimization
This change fixes the "ALSA: pcm_lib - optimize wake_up() calls for PCM I/O"
commit. New sleeping queue is introduced to separate user space and kernel
space wake_ups. runtime->nowake is renamed to twake (transfer wake).
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/core/pcm.c')
-rw-r--r-- | sound/core/pcm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c index df57a0e30bf2..0d428d0896db 100644 --- a/sound/core/pcm.c +++ b/sound/core/pcm.c | |||
@@ -894,6 +894,7 @@ int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, | |||
894 | memset((void*)runtime->control, 0, size); | 894 | memset((void*)runtime->control, 0, size); |
895 | 895 | ||
896 | init_waitqueue_head(&runtime->sleep); | 896 | init_waitqueue_head(&runtime->sleep); |
897 | init_waitqueue_head(&runtime->tsleep); | ||
897 | 898 | ||
898 | runtime->status->state = SNDRV_PCM_STATE_OPEN; | 899 | runtime->status->state = SNDRV_PCM_STATE_OPEN; |
899 | 900 | ||