Skip to content

Commit f4c9c0e

Browse files
Alexandre Bouninetorvalds
authored andcommitted
rapidio: use msleep in discovery wait
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>
1 parent 6272605 commit f4c9c0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rapidio/rio-scan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ int __devinit rio_disc_mport(struct rio_mport *mport)
13911391
while (time_before(jiffies, to_end)) {
13921392
if (rio_enum_complete(mport))
13931393
goto enum_done;
1394-
schedule_timeout_uninterruptible(msecs_to_jiffies(10));
1394+
msleep(10);
13951395
}
13961396

13971397
pr_debug("RIO: discovery timeout on mport %d %s\n",

0 commit comments

Comments
 (0)