diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-07-26 04:29:22 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-07-26 04:33:41 -0400 |
commit | e5de3dfc391cceff6a4a3a0bb9c9c349a2e7c275 (patch) | |
tree | 028238c9ca3a193274f37fdef239d8b95a46c9e2 /sound/oss | |
parent | 2232e238295d8ea707fe4271ffbfd4f32346aa81 (diff) |
sound: oss: waveartist: simplify waveartist_sleep()
waveartist_sleep() uses loop with schedule_timeout() to unconditionally
wait for msec. Use schedule_timeout_uninteruptible() instead.
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/oss')
-rw-r--r-- | sound/oss/waveartist.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sound/oss/waveartist.c b/sound/oss/waveartist.c index e688dde6bbd..52468742d9f 100644 --- a/sound/oss/waveartist.c +++ b/sound/oss/waveartist.c | |||
@@ -184,14 +184,8 @@ waveartist_iack(wavnc_info *devc) | |||
184 | static inline int | 184 | static inline int |
185 | waveartist_sleep(int timeout_ms) | 185 | waveartist_sleep(int timeout_ms) |
186 | { | 186 | { |
187 | unsigned int timeout = timeout_ms * 10 * HZ / 100; | 187 | unsigned int timeout = msecs_to_jiffies(timeout_ms*100); |
188 | 188 | return schedule_timeout_interruptible(timeout); | |
189 | do { | ||
190 | set_current_state(TASK_INTERRUPTIBLE); | ||
191 | timeout = schedule_timeout(timeout); | ||
192 | } while (timeout); | ||
193 | |||
194 | return 0; | ||
195 | } | 189 | } |
196 | 190 | ||
197 | static int | 191 | static int |