mmc: replace schedule_timeout() with msleep_interruptible()
PATCH 4/4 mmc: replace schedule_timeout() with msleep_interruptible()
Any comments would be appreciated.
Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
Signed-off-by Maximilian Attems <[email protected]>
---
linux-2.6.9-rc2-bk7-max/drivers/mmc/mmc.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-)
drivers/mmc/mmc.c renamed from drivers/mmc/mmc.c~msleep_interruptible-drivers_mmc_mmc +1 -2
@@ -270,8 +270,7 @@ static inline void mmc_delay(unsigned inyield ();mdelay (ms); }else { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (ms *HZ /1000 ); +msleep_interruptible (ms); } }
_
Russell King
AppliedQuoted 2 lines · On Thu, Sep 23, 2004 at 10:49:10PM +0200, [email protected] wrote:
Description: Use
msleep_interruptible()instead ofschedule_timeout()to guarantee the task delays as expected.
Applied, thanks.
Signature · 4 lines
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core