summaryrefslogtreecommitdiffstats
path: root/drivers/soc/fsl/qbman
diff options
context:
space:
mode:
authorKarim Eshapa <karim.eshapa@gmail.com>2017-05-05 07:45:18 +0200
committerLi Yang <leoyang.li@nxp.com>2017-09-22 20:32:57 +0200
commit7ce2e934178b1af66c99ffefd831ab0de7244747 (patch)
tree0fd3b9d1e6ed8b3533cb2566b290ed3eea3b968f /drivers/soc/fsl/qbman
parentMerge tag 'for-linus-4.14b-rc2-tag' of git://git.kernel.org/pub/scm/linux/ker... (diff)
downloadlinux-7ce2e934178b1af66c99ffefd831ab0de7244747.tar.xz
linux-7ce2e934178b1af66c99ffefd831ab0de7244747.zip
soc/fsl/qman: Sleep instead of stuck hacking jiffies
Use msleep() instead of stucking with long delay will be more efficient. Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com> Acked-by: Scott Wood <oss@buserror.net> Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'drivers/soc/fsl/qbman')
-rw-r--r--drivers/soc/fsl/qbman/qman.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/soc/fsl/qbman/qman.c b/drivers/soc/fsl/qbman/qman.c
index 18eefc3f1abe..da68f887ed82 100644
--- a/drivers/soc/fsl/qbman/qman.c
+++ b/drivers/soc/fsl/qbman/qman.c
@@ -1084,11 +1084,7 @@ loop:
* entries well before the ring has been fully consumed, so
* we're being *really* paranoid here.
*/
- u64 now, then = jiffies;
-
- do {
- now = jiffies;
- } while ((then + 10000) > now);
+ msleep(1);
msg = qm_mr_current(p);
if (!msg)
return 0;