rapidio: use msleep in discovery wait
authorAlexandre Bounine <alexandre.bounine@idt.com>
Wed, 10 Oct 2012 22:53:58 +0000 (15:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Oct 2012 23:50:14 +0000 (08:50 +0900)
Use msleep() for code clarity as suggested by Andrew Morton in his
comments for the original patch: https://lkml.org/lkml/2012/10/3/546.

Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Li Yang <leoli@freescale.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rapidio/rio-scan.c

index 48e9041dd1e29b016b7997c2f8c74726ce90223d..05f0ed9f8b1ef23d4f6ba16b44800a98a5af9c4d 100644 (file)
@@ -1391,7 +1391,7 @@ int __devinit rio_disc_mport(struct rio_mport *mport)
                while (time_before(jiffies, to_end)) {
                        if (rio_enum_complete(mport))
                                goto enum_done;
-                       schedule_timeout_uninterruptible(msecs_to_jiffies(10));
+                       msleep(10);
                }
 
                pr_debug("RIO: discovery timeout on mport %d %s\n",