Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 521999bd authored by Linus Walleij's avatar Linus Walleij Committed by Grant Likely
Browse files

spi/pl022: use cpu_relax in the busy loop



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

Reported-by: default avatarVitaly Wool <vitalywool@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 7f9a4b97
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1424,6 +1424,7 @@ static void do_polling_transfer(struct pl022 *pl022)
				message->state = STATE_ERROR;
				goto out;
			}
			cpu_relax();
		}

		/* Update total byte transferred */