arm64: Do not synchronise I and D caches for special ptes
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 12 Mar 2014 16:28:09 +0000 (16:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:55:26 +0000 (07:55 -0700)
commitb1f2bfc9d8bb42b4e5a93470e8a0974cd4c04697
tree63bd2b2727e30f89c6c2c9c9d9df53f603d44887
parentbdec4322971737d2d70087b6cbfd9d39e781e114
arm64: Do not synchronise I and D caches for special ptes

commit 71fdb6bf61bf0692f004f9daf5650392c0cfe300 upstream.

Special pte mappings are not intended to be executable and do not even
have an associated struct page. This patch ensures that we do not call
__sync_icache_dcache() on such ptes.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Steve Capper <Steve.Capper@arm.com>
Tested-by: Laura Abbott <lauraa@codeaurora.org>
Tested-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/pgtable.h