Skip to contentSkip to conversation

mmc: replace schedule_timeout() with msleep_interruptible()

PATCH Applied [email protected] 2 participants 2 messages Sep 23, 2004 – Sep 29, 2004 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

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.

---

 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
diff -puN drivers/mmc/mmc.c~msleep_interruptible-drivers_mmc_mmc drivers/mmc/mmc.c
@@ -270,8 +270,7 @@ static inline void mmc_delay(unsigned in
 		yield();
 		mdelay(ms);
 	} else {
-		set_current_state(TASK_INTERRUPTIBLE);
-		schedule_timeout(ms * HZ / 1000);
+		msleep_interruptible (ms);
 	}
 }
 

_

Applied
#1 lore raw
Quoted 2 lines · On Thu, Sep 23, 2004 at 10:49:10PM +0200, [email protected] wrote:

Description: Use msleep_interruptible() instead of schedule_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