spi/pl022: use cpu_relax in the busy loop
authorLinus Walleij <linus.walleij@stericsson.com>
Thu, 19 May 2011 18:01:25 +0000 (20:01 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 20 May 2011 06:43:07 +0000 (00:43 -0600)
commit521999bd4a8c47a86136b9d8223a9480f5906db8
tree3aae84e1eacfc6f96e7d7ef244f511e0afa72653
parent7f9a4b9797405061a07fca26ff1b4f305c564e5d
spi/pl022: use cpu_relax in the busy loop

This relaxes the cpu in the polling busy-wait loop.

Reported-by: Vitaly Wool <vitalywool@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/amba-pl022.c