Commit b3004915 authored by Maximilian Attems's avatar Maximilian Attems Committed by Russell King

[MMC] replace schedule_timeout() with msleep_interruptible()

Use msleep_interruptible() instead of schedule_timeout() to
guarantee the task delays as expected.

Signed-off-by: Nishanth Aravamudan
Signed-off-by: Maximilian Attems
parent 0eaf89f2
...@@ -270,8 +270,7 @@ static inline void mmc_delay(unsigned int ms) ...@@ -270,8 +270,7 @@ static inline void mmc_delay(unsigned int ms)
yield(); yield();
mdelay(ms); mdelay(ms);
} else { } else {
set_current_state(TASK_INTERRUPTIBLE); msleep_interruptible (ms);
schedule_timeout(ms * HZ / 1000);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment