From d1b92facbd913382d971e5dc5839ed590af2a387 Mon Sep 17 00:00:00 2001 From: Maximilian Attems Date: Fri, 10 Sep 2004 05:26:03 -0400 Subject: [PATCH] [PATCH] scsi/wd7000: replace schedule_timeout() with msleep() Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time. Signed-off-by: Nishanth Aravamudan Signed-off-by: Maximilian Attems Signed-off-by: James Bottomley --- drivers/scsi/wd7000.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/wd7000.c b/drivers/scsi/wd7000.c index 553a5f1e2d99d..eb7145ba54d63 100644 --- a/drivers/scsi/wd7000.c +++ b/drivers/scsi/wd7000.c @@ -1473,8 +1473,7 @@ static int wd7000_detect(struct scsi_host_template *tpnt) * 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)) { -- 2.53.0