Skip to contentSkip to conversation

scsi/wd7000: replace schedule_timeout() with msleep()

PATCH New [email protected] 1 participant 1 message Sep 1, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 7/7 scsi/wd7000: replace schedule_timeout() with msleep()

I would appreciate any comments from the janitor@sternweltens list.

Description: Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time.

---

 linux-2.6.9-rc1-bk7-max/drivers/scsi/wd7000.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/wd7000.c renamed from drivers/scsi/wd7000.c~msleep-drivers_scsi_wd7000 +1 -2
diff -puN drivers/scsi/wd7000.c~msleep-drivers_scsi_wd7000 drivers/scsi/wd7000.c
@@ -1473,8 +1473,7 @@ static int wd7000_detect(struct scsi_hos
 			 * ASC reset...
 			 */
 			outb(ASC_RES, iobase + ASC_CONTROL);
-			set_current_state(TASK_UNINTERRUPTIBLE);
-			schedule_timeout(HZ / 100);
+			msleep(10);
 			outb(0, iobase + ASC_CONTROL);
 
 			if (WAIT(iobase + ASC_STAT, ASC_STATMASK, CMD_RDY, 0)) {

_