[SCSI] hpsa: use usleep_range not msleep for small sleeps
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 6 Jan 2011 20:48:34 +0000 (14:48 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 24 Jan 2011 17:30:56 +0000 (11:30 -0600)
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
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);
        }
 }