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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:24:27 +0000 (12:24 -0800)
commit1e616427f20943c9966296dfff9e7a2b825846aa
tree44f9e72dfbc5637e726f35e2da4d34680dcbf359
parent6e7be6fc3eb45928bb28ebbedf30a30ed82b35b5
arm64: Avoid cache flushing in flush_dcache_page()

commit b5b6c9e9149d8a7c3f1d7b9d0c046c6184e1dd17 upstream.

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>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/mm/flush.c