commit | 521999bd4a8c47a86136b9d8223a9480f5906db8 | [log] [tgz] |
---|---|---|
author | Linus Walleij <[email protected]> | Thu May 19 20:01:25 2011 +0200 |
committer | Grant Likely <[email protected]> | Fri May 20 00:43:07 2011 -0600 |
tree | 3aae84e1eacfc6f96e7d7ef244f511e0afa72653 | |
parent | 7f9a4b9797405061a07fca26ff1b4f305c564e5d [diff] [blame] |
spi/pl022: use cpu_relax in the busy loop This relaxes the cpu in the polling busy-wait loop. Reported-by: Vitaly Wool <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Grant Likely <[email protected]>
diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c index 18667de4..8a2b88a 100644 --- a/drivers/spi/amba-pl022.c +++ b/drivers/spi/amba-pl022.c
@@ -1424,6 +1424,7 @@ message->state = STATE_ERROR; goto out; } + cpu_relax(); } /* Update total byte transferred */