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

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
......@@ -1424,6 +1424,7 @@ static void do_polling_transfer(struct pl022 *pl022)
message->state = STATE_ERROR;
goto out;
}
cpu_relax();
}
/* Update total byte transferred */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment