scsi/wd7000: replace schedule_timeout() with msleep()
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.
Signed-off-by Nishanth Aravamudan <[email protected]>
Signed-off-by Maximilian Attems <[email protected]>
---
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
@@ -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 )) {
_