]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
sh: avoid to flush all cache in sys_cacheflush
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Wed, 17 Nov 2010 06:51:08 +0000 (06:51 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 17 Nov 2010 08:55:30 +0000 (17:55 +0900)
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>
arch/sh/kernel/sys_sh.c

index 81f58371613dc71c97e2cc576d91eae8266d6934..8c6a350df751a97779cfe7030054b416203f9d9a 100644 (file)
@@ -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;