spi/pl022: use cpu_relax in the busy loop
PATCH 1/1 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]>
--- drivers/spi/amba-pl022.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/spi/amba-pl022.c +1 -0
@@ -1424,6 +1424,7 @@ static void do_polling_transfer(struct pl022 *pl022) message->state =STATE_ERROR ; goto out; } +cpu_relax (); }/* Update total byte transferred */
Signature · 1 line
1.7.3.2
Grant Likely
AppliedPATCH 1/1 spi/pl022: use cpu_relax in the busy loop
Quoted 4 lines · Linus Walleij
This relaxes the cpu in the polling busy-wait loop.
Reported-by Vitaly Wool <[email protected]>Signed-off-by Linus Walleij <[email protected]>
Applied, thanks.
g.
Quoted 19 lines
--- drivers/spi/amba-pl022.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/spi/amba-pl022.c +1
-0@@ -1424,6 +1424,7 @@ static void do_polling_transfer(struct pl022 *pl022) message->state =STATE_ERROR ; goto out; } +cpu_relax (); }/* Update total byte transferred */ Signature · 1 line
1.7.3.2