diff options
author | Linus Walleij <linus.walleij@stericsson.com> | 2011-05-19 20:01:25 +0200 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-05-20 00:43:07 -0600 |
commit | 521999bd4a8c47a86136b9d8223a9480f5906db8 (patch) | |
tree | 3aae84e1eacfc6f96e7d7ef244f511e0afa72653 | |
parent | 7f9a4b9797405061a07fca26ff1b4f305c564e5d (diff) |
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>
-rw-r--r-- | drivers/spi/amba-pl022.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c index 18667de436f..8a2b88aee37 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 */ |