diff options
| -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) | |||
| 163 | static void | 163 | static void |
| 164 | au1550_delay(int msec) | 164 | au1550_delay(int msec) |
| 165 | { | 165 | { |
| 166 | unsigned long tmo; | ||
| 167 | signed long tmo2; | ||
| 168 | |||
| 169 | if (in_interrupt()) | 166 | if (in_interrupt()) |
| 170 | return; | 167 | return; |
| 171 | 168 | ||
| 172 | tmo = jiffies + (msec * HZ) / 1000; | 169 | schedule_timeout_uninterruptible(msecs_to_jiffies(msec)); |
| 173 | for (;;) { | ||
| 174 | tmo2 = tmo - jiffies; | ||
| 175 | if (tmo2 <= 0) | ||
| 176 | break; | ||
| 177 | schedule_timeout(tmo2); | ||
| 178 | } | ||
| 179 | } | 170 | } |
| 180 | 171 | ||
| 181 | static u16 | 172 | static u16 |
