summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@stericsson.com>2011-05-19 20:01:25 +0200
committerGrant Likely <grant.likely@secretlab.ca>2011-05-20 00:43:07 -0600
commit521999bd4a8c47a86136b9d8223a9480f5906db8 (patch)
tree3aae84e1eacfc6f96e7d7ef244f511e0afa72653 /drivers/spi
parent7f9a4b9797405061a07fca26ff1b4f305c564e5d (diff)
downloadlinux-521999bd4a8c47a86136b9d8223a9480f5906db8.tar.bz2
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/amba-pl022.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c
index 18667de436f1..8a2b88aee373 100644
--- a/drivers/spi/amba-pl022.c
+++ b/drivers/spi/amba-pl022.c
@@ -1424,6 +1424,7 @@ static void do_polling_transfer(struct pl022 *pl022)
message->state = STATE_ERROR;
goto out;
}
+ cpu_relax();
}
/* Update total byte transferred */