Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilian Attems <janitor@at.none.(rmk)>2004-09-29 16:46:45 +0100
committerRussell King <rmk@flint.arm.linux.org.uk>2004-09-29 16:46:45 +0100
commitb3004915274bedc5f6fc4d9cc0ca6f0f248e8f38 (patch)
tree0aa360cb0f8f20b6b8cbfb5aa17093a025a97851
parent0eaf89f20ccde6456c1e8d5d08e8036c9a746381 (diff)
[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
-rw-r--r--drivers/mmc/mmc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 3d057384dd17..38fb1b8e433b 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -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);
}
}