Skip to content

Commit 8e3a9f4

Browse files
James Hoganralfbaechle
authored andcommitted
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 <[email protected]> Cc: Leonid Yegoshin <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/14153/ Signed-off-by: Ralf Baechle <[email protected]>
1 parent 01882b4 commit 8e3a9f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/mm/cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ SYSCALL_DEFINE3(cacheflush, unsigned long, addr, unsigned long, bytes,
7878
if (!access_ok(VERIFY_WRITE, (void __user *) addr, bytes))
7979
return -EFAULT;
8080

81-
flush_icache_range(addr, addr + bytes);
81+
__flush_icache_user_range(addr, addr + bytes);
8282

8383
return 0;
8484
}

0 commit comments

Comments
 (0)