[PATCH 1/2] serial: amba-pl011: use cpu_relax when polling registers
From: Greg Kroah-Hartman <hidden>
Date: 2015-12-13 06:04:59
Also in:
linux-serial
From: Greg Kroah-Hartman <hidden>
Date: 2015-12-13 06:04:59
Also in:
linux-serial
On Tue, Nov 03, 2015 at 09:01:06AM -0600, Timur Tabi wrote:
Busy loops that poll on a register should call cpu_relax(). On some architectures, it can lower CPU power consumption or yield to a hyperthreaded twin processor. It also serves as a compiler barrier, so it can replace barrier() calls. Signed-off-by: Timur Tabi <redacted> Reviewed-by: Peter Hurley <redacted> --- drivers/tty/serial/amba-pl011.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
Doesn't apply to my tree :(