diff options
author | Giuseppe CAVALLARO <peppe.cavallaro@st.com> | 2010-11-17 06:51:08 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-17 17:55:30 +0900 |
commit | a6786fdad97d2ef4454f75a11a4f2a3bf67f2348 (patch) | |
tree | 1ce8c67a3e3f319fc044fd65ea04ff07c1141857 /arch/sh | |
parent | 849653372d3f98332bf84e9fb814d9f9a02eeda2 (diff) | |
download | linux-a6786fdad97d2ef4454f75a11a4f2a3bf67f2348.tar.bz2 |
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.c | 2 |
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(¤t->mm->mmap_sem); return 0; |