mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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]>
This commit is contained in:
parent
7f9a4b9797
commit
521999bd4a
1 changed files with 1 additions and 0 deletions
|
|
@ -1424,6 +1424,7 @@ static void do_polling_transfer(struct pl022 *pl022)
|
|||
message->state = STATE_ERROR;
|
||||
goto out;
|
||||
}
|
||||
cpu_relax();
|
||||
}
|
||||
|
||||
/* Update total byte transferred */
|
||||
|
|
|
|||
Loading…
Reference in a new issue