summaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>2010-11-17 07:51:08 +0100
committerPaul Mundt <lethal@linux-sh.org>2010-11-17 09:55:30 +0100
commita6786fdad97d2ef4454f75a11a4f2a3bf67f2348 (patch)
tree1ce8c67a3e3f319fc044fd65ea04ff07c1141857 /arch/sh
parentMerge branch 'common/clkfwk' into sh-fixes-for-linus (diff)
downloadlinux-a6786fdad97d2ef4454f75a11a4f2a3bf67f2348.tar.xz
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/sh')
-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;