arm64: compat: align cacheflush syscall with arch/arm
authorVladimir Murzin <vladimir.murzin@arm.com>
Mon, 1 Dec 2014 10:53:08 +0000 (10:53 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 1 Dec 2014 13:31:12 +0000 (13:31 +0000)
commita2d25a5391ca219f196f9fee7b535c40d201c6bf
tree4b2e208ebac21cf53793db6ba4ed5a74b04a6d59
parenta1ae65b219416a72c15577bd4c8c11174fffbb8b
arm64: compat: align cacheflush syscall with arch/arm

Update handling of cacheflush syscall with changes made in arch/arm
counterpart:
 - return error to userspace when flushing syscall fails
 - split user cache-flushing into interruptible chunks
 - don't bother rounding to nearest vma

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
[will: changed internal return value from -EINTR to 0 to match arch/arm/]
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/cacheflush.h
arch/arm64/kernel/sys_compat.c
arch/arm64/mm/cache.S