]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: vdso: Remove redundant calls to flush_dcache_page()
authorWill Deacon <will@kernel.org>
Thu, 18 Mar 2021 17:07:35 +0000 (17:07 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 24 Mar 2021 16:48:41 +0000 (16:48 +0000)
commit9bc67e251ebd41b6a5e5528eb8bb116cb53205fd
tree59789d2816689e628633566c29658d148ead9d3b
parent78619a0444952b1cafe1654c98ab529d43defb64
arm64: vdso: Remove redundant calls to flush_dcache_page()

flush_dcache_page() ensures that the 'PG_dcache_clean' flag for its
'page' argument is clear so that cache maintenance will be performed
if the page is mapped into userspace with execute permissions.

Newly allocated pages have this flag clear, so there is no need to call
flush_dcache_page() for the compat vdso or signal pages. Remove the
redundant calls.

Signed-off-by: Will Deacon <will@kernel.org>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Link: https://lore.kernel.org/r/20210318170738.7756-3-will@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/vdso.c