From: Alexandre Bounine Date: Wed, 10 Oct 2012 22:53:58 +0000 (-0700) Subject: rapidio: use msleep in discovery wait X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4c9c0e83bdfab6d3de7bc9ad728d99bf6adde92;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Matt Porter Cc: Li Yang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) 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",