提交 7ce2e934 编写于 作者: K Karim Eshapa 提交者: Li Yang

soc/fsl/qman: Sleep instead of stuck hacking jiffies

Use msleep() instead of stucking with long delay will be more efficient.
Signed-off-by: NKarim Eshapa <karim.eshapa@gmail.com>
Acked-by: NScott Wood <oss@buserror.net>
Signed-off-by: NLi Yang <leoyang.li@nxp.com>
上级 0a8abd97
......@@ -1084,11 +1084,7 @@ static int drain_mr_fqrni(struct qm_portal *p)
* 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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册