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)
yield();
mdelay(ms);
} else {
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(ms * HZ / 1000);
msleep_interruptible (ms);
}
}
......
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