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:
Linus Walleij 2011-05-19 20:01:25 +02:00 • committed by Grant Likely
commit 521999bd4a

View file

@ -1424,6 +1424,7 @@ static void do_polling_transfer(struct pl022 *pl022)
message->state = STATE_ERROR;
goto out;
}
cpu_relax();
}
/* Update total byte transferred */