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-Tag: v3.12-rc1~6897^2~151 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60d3f5b068e65d424f3cf5d108fb0747dd156d00;p=kernel%2Fkernel-generic.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 10076f1..ddd729e 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); } }