arm64: Avoid cache flushing in flush_dcache_page()
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 1 May 2013 11:23:05 +0000 (12:23 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 7 Jun 2013 16:58:28 +0000 (17:58 +0100)
commitb5b6c9e9149d8a7c3f1d7b9d0c046c6184e1dd17
tree820998f37abcb6ab846e9c9ec59ec30c5c0b43f4
parentd25749afc6f2a40471a70c04a35633e30cbe59a5
arm64: Avoid cache flushing in flush_dcache_page()

The flush_dcache_page() function is called when the kernel modified a
page cache page. Since the D-cache on AArch64 does not have aliases
this function can simply mark the page as dirty for later flushing via
set_pte_at()/__sync_icache_dcache() if the page is executable (to ensure
the I-D cache coherency).

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Will Deacon <will.deacon@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/flush.c