diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-07-26 12:28:32 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-07-26 10:33:31 +0200 |
commit | 2232e238295d8ea707fe4271ffbfd4f32346aa81 (patch) | |
tree | b6188ead47b4c996a6e0ff48b07034276ede8941 /sound/oss | |
parent | ff388f270d926d95d70e5b3d373c9cb97b38c8b1 (diff) | |
download | linux-stable-2232e238295d8ea707fe4271ffbfd4f32346aa81.tar.gz linux-stable-2232e238295d8ea707fe4271ffbfd4f32346aa81.tar.bz2 linux-stable-2232e238295d8ea707fe4271ffbfd4f32346aa81.zip |
sound: oss: au1550_ac97: simplify au1550_delay()
au1550_delay() 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/au1550_ac97.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sound/oss/au1550_ac97.c b/sound/oss/au1550_ac97.c index 0fd256ceea6b..c4a4cdc07ab9 100644 --- a/sound/oss/au1550_ac97.c +++ b/sound/oss/au1550_ac97.c @@ -163,19 +163,10 @@ ld2(unsigned int x) static void au1550_delay(int msec) { - unsigned long tmo; - signed long tmo2; - if (in_interrupt()) return; - tmo = jiffies + (msec * HZ) / 1000; - for (;;) { - tmo2 = tmo - jiffies; - if (tmo2 <= 0) - break; - schedule_timeout(tmo2); - } + schedule_timeout_uninterruptible(msecs_to_jiffies(msec)); } static u16 |