[SCSI] hpsa: use usleep_range not msleep for small sleeps
authorStephen M. Cameron <[email protected]>
Thu, 6 Jan 2011 20:48:34 +0000 (14:48 -0600)
committerJames Bottomley <[email protected]>
Mon, 24 Jan 2011 17:30:56 +0000 (11:30 -0600)
Signed-off-by: Stephen M. Cameron <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
drivers/scsi/hpsa.c

index 10076f1868e024398aa2fe51b811925aaff7e7be..ddd729e2ea89ad3b22a552870504d2697edda110 100644 (file)
@@ -3571,7 +3571,7 @@ static void __devinit hpsa_wait_for_mode_change_ack(struct ctlr_info *h)
                if (!doorbell_value & CFGTBL_ChangeReq)
                        break;
                /* delay and try again */
-               msleep(10);
+               usleep_range(10000, 20000);
        }
 }