提交 521999bd 编写于 作者: L Linus Walleij 提交者: Grant Likely

spi/pl022: use cpu_relax in the busy loop

This relaxes the cpu in the polling busy-wait loop.
Reported-by: NVitaly Wool <vitalywool@gmail.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 7f9a4b97
......@@ -1424,6 +1424,7 @@ static void do_polling_transfer(struct pl022 *pl022)
message->state = STATE_ERROR;
goto out;
}
cpu_relax();
}
/* Update total byte transferred */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册