]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8823/1: Implement pgprot_device()
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Wed, 16 Jan 2019 12:31:41 +0000 (13:31 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 1 Feb 2019 21:44:11 +0000 (21:44 +0000)
commit28530d98537b330178591c54e0e221f5e85f5ce6
treee2c9050c7216042b84321bfede3ac4b22aac2422
parent736753b0f2a451d860c5dfa46f9a691529272e6a
ARM: 8823/1: Implement pgprot_device()

This is used when mmapping the PCI resource* files in sys.  Because ARM
currently lacks an implementation of pgprot_device(), it falls back to
pgprot_uncached() (Strongly Ordered), but we should be able to use
Device memory instead.

Doing this speeds up large writes to the resource files by about 40% on
one of my systems.  It also ensures that mmaps on these resources use
the same memory type as ioremap().

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/pgtable.h