aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rapidio
diff options
context:
space:
mode:
authorAlexandre Bounine <alexandre.bounine@idt.com>2012-10-10 18:53:58 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-10 19:50:14 -0400
commitf4c9c0e83bdfab6d3de7bc9ad728d99bf6adde92 (patch)
treea553b1e1757023f64097d30e491958e394f0354e /drivers/rapidio
parent627260595ca6abcb16d68a3732bac6b547e112d6 (diff)
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>
Diffstat (limited to 'drivers/rapidio')
-rw-r--r--drivers/rapidio/rio-scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rapidio/rio-scan.c b/drivers/rapidio/rio-scan.c
index 48e9041dd1e2..05f0ed9f8b1e 100644
--- a/drivers/rapidio/rio-scan.c
+++ b/drivers/rapidio/rio-scan.c
@@ -1391,7 +1391,7 @@ int __devinit rio_disc_mport(struct rio_mport *mport)
1391 while (time_before(jiffies, to_end)) { 1391 while (time_before(jiffies, to_end)) {
1392 if (rio_enum_complete(mport)) 1392 if (rio_enum_complete(mport))
1393 goto enum_done; 1393 goto enum_done;
1394 schedule_timeout_uninterruptible(msecs_to_jiffies(10)); 1394 msleep(10);
1395 } 1395 }
1396 1396
1397 pr_debug("RIO: discovery timeout on mport %d %s\n", 1397 pr_debug("RIO: discovery timeout on mport %d %s\n",