From: Stephen M. Cameron Date: Thu, 6 Jan 2011 20:48:34 +0000 (-0600) Subject: [SCSI] hpsa: use usleep_range not msleep for small sleeps X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=60d3f5b068e65d424f3cf5d108fb0747dd156d00;p=linux-beck.git [SCSI] hpsa: use usleep_range not msleep for small sleeps Signed-off-by: Stephen M. Cameron Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 10076f1868e0..ddd729e2ea89 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -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); } }