summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>2010-11-17 06:51:08 +0000
committerPaul Mundt <lethal@linux-sh.org>2010-11-17 17:55:30 +0900
commita6786fdad97d2ef4454f75a11a4f2a3bf67f2348 (patch)
tree1ce8c67a3e3f319fc044fd65ea04ff07c1141857 /arch
parent849653372d3f98332bf84e9fb814d9f9a02eeda2 (diff)
downloadlinux-a6786fdad97d2ef4454f75a11a4f2a3bf67f2348.tar.gz
linux-a6786fdad97d2ef4454f75a11a4f2a3bf67f2348.tar.bz2
linux-a6786fdad97d2ef4454f75a11a4f2a3bf67f2348.zip
sh: avoid to flush all cache in sys_cacheflush
Calling sys_cacheflush with ICACHE we can direclty flush the icache without invoking the flush_cache_all function. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/kernel/sys_sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/sys_sh.c b/arch/sh/kernel/sys_sh.c
index 81f58371613d..8c6a350df751 100644
--- a/arch/sh/kernel/sys_sh.c
+++ b/arch/sh/kernel/sys_sh.c
@@ -88,7 +88,7 @@ asmlinkage int sys_cacheflush(unsigned long addr, unsigned long len, int op)
}
if (op & CACHEFLUSH_I)
- flush_cache_all();
+ flush_icache_range(addr, addr+len);
up_read(&current->mm->mmap_sem);
return 0;