summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/cache.c
diff options
context:
space:
mode:
authorJames Hogan2016-09-01 18:30:12 +0200
committerRalf Baechle2016-10-04 16:13:57 +0200
commit8e3a9f4c3ab6dd0da5e8a89bd252518ff2ee5e3a (patch)
tree1d97af9be79d14fb09ffcc8b94bb7447ec63c69b /arch/mips/mm/cache.c
parentMIPS: c-r4k: Split user/kernel flush_icache_range() (diff)
downloadkernel-qcow2-linux-8e3a9f4c3ab6dd0da5e8a89bd252518ff2ee5e3a.tar.gz
kernel-qcow2-linux-8e3a9f4c3ab6dd0da5e8a89bd252518ff2ee5e3a.tar.xz
kernel-qcow2-linux-8e3a9f4c3ab6dd0da5e8a89bd252518ff2ee5e3a.zip
MIPS: cacheflush: Use __flush_icache_user_range()
The cacheflush(2) system call uses flush_icache_range() to flush a range of usermode addresses from the icache, so change it to utilise the new __flush_icache_user_range() API to allow the more generic flush_icache_range() to be changed to work on kernel addresses only. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Leonid Yegoshin <leonid.yegoshin@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/14153/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm/cache.c')
-rw-r--r--arch/mips/mm/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c
index 5a644c3fe155..7ec0847c725a 100644
--- a/arch/mips/mm/cache.c
+++ b/arch/mips/mm/cache.c
@@ -78,7 +78,7 @@ SYSCALL_DEFINE3(cacheflush, unsigned long, addr, unsigned long, bytes,
if (!access_ok(VERIFY_WRITE, (void __user *) addr, bytes))
return -EFAULT;
- flush_icache_range(addr, addr + bytes);
+ __flush_icache_user_range(addr, addr + bytes);
return 0;
}