ARM: cacheflush: don't bother rounding to nearest vma
authorWill Deacon <will.deacon@arm.com>
Wed, 22 Aug 2012 10:06:54 +0000 (11:06 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 20 Aug 2013 10:54:55 +0000 (11:54 +0100)
commit97c72d89ce0ec8c73f19d5e35ec1f90f7a14bed7
tree3711daf93348310350bd1a94f89f5ccce092397e
parentd9524dc32cab52714dee0c8e59c7437ee33a239a
ARM: cacheflush: don't bother rounding to nearest vma

do_cache_op finds the lowest VMA contained in the specified address
range and rounds the range to cover only the mapped addresses.

Since commit 4542b6a0fa6b ("ARM: 7365/1: drop unused parameter from
flush_cache_user_range") the VMA is not used for anything else in this
code and seeing as the low-level cache flushing routines return -EFAULT
if the address is not valid, there is no need for this range truncation.

This patch removes the VMA handling code from the cacheflushing syscall.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/traps.c