diff options
-rw-r--r-- | drivers/mmc/core/core.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/mmc/core/core.h b/drivers/mmc/core/core.h index 71e6c6d..b2877e2 100644 --- a/drivers/mmc/core/core.h +++ b/drivers/mmc/core/core.h @@ -62,12 +62,10 @@ void mmc_set_initial_state(struct mmc_host *host); static inline void mmc_delay(unsigned int ms) { - if (ms < 1000 / HZ) { - cond_resched(); - mdelay(ms); - } else { + if (ms <= 20) + usleep_range(ms * 1000, ms * 1250); + else msleep(ms); - } } void mmc_rescan(struct work_struct *work); |