tty: amba-pl011: switch to using relaxed IO accessors
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 16 Nov 2015 17:41:02 +0000 (17:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Dec 2015 03:59:48 +0000 (19:59 -0800)
commitf5ce6edd22cff94e7b4a17f26cad43e60ae3d080
treec8c986ba2bc78c8b3b5a985c4faf4f73791258b4
parent7ec758718920e5e5876d0d02ece6855128c8eb1e
tty: amba-pl011: switch to using relaxed IO accessors

Using relaxed IO accessors allows GCC to better optimise this code
as we eliminate the heavy memory barriers - for example, GCC can now
cache the address of a register across a read-modify-write sequence,
rather than reloading the base address, offset and access size flag.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c
This page took 0.025053 seconds and 5 git commands to generate.