diff options
Diffstat (limited to 'drivers/mmc/mmc.c')
-rw-r--r-- | drivers/mmc/mmc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 1593a6a632cf..82b7643c1654 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c | |||
@@ -454,11 +454,11 @@ static void mmc_deselect_cards(struct mmc_host *host) | |||
454 | 454 | ||
455 | static inline void mmc_delay(unsigned int ms) | 455 | static inline void mmc_delay(unsigned int ms) |
456 | { | 456 | { |
457 | if (ms < HZ / 1000) { | 457 | if (ms < 1000 / HZ) { |
458 | yield(); | 458 | cond_resched(); |
459 | mdelay(ms); | 459 | mdelay(ms); |
460 | } else { | 460 | } else { |
461 | msleep_interruptible (ms); | 461 | msleep(ms); |
462 | } | 462 | } |
463 | } | 463 | } |
464 | 464 | ||