From: Randy Dunlap Date: Fri, 18 Sep 2009 19:58:48 +0000 (-0700) Subject: cciss: fix schedule_timeout() parameters X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4d761609471f7e543c880dd47ef5e1669076081b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git cciss: fix schedule_timeout() parameters Change schedule_timeout() parameter to not be specific to HZ=1000. Signed-off-by: Randy Dunlap Acked-by: Mike Miller Cc: Marcin Slusarz Cc: "Cameron, Steve" Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 24c3e21ab263..b890f8b3c092 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -3489,7 +3490,7 @@ static int __devinit cciss_pci_init(ctlr_info_t *c, struct pci_dev *pdev) if (scratchpad == CCISS_FIRMWARE_READY) break; set_current_state(TASK_INTERRUPTIBLE); - schedule_timeout(HZ / 10); /* wait 100ms */ + schedule_timeout(msecs_to_jiffies(100)); /* wait 100ms */ } if (scratchpad != CCISS_FIRMWARE_READY) { printk(KERN_WARNING "cciss: Board not ready. Timed out.\n"); @@ -3615,7 +3616,7 @@ static int __devinit cciss_pci_init(ctlr_info_t *c, struct pci_dev *pdev) break; /* delay and try again */ set_current_state(TASK_INTERRUPTIBLE); - schedule_timeout(10); + schedule_timeout(msecs_to_jiffies(1)); } #ifdef CCISS_DEBUG