diff mbox

[(sh-2.6)] sh: avoid to flush all cache in sys_cacheflush

Message ID 1289976668-27728-1-git-send-email-peppe.cavallaro@st.com (mailing list archive)
State Accepted
Commit a6786fdad97d2ef4454f75a11a4f2a3bf67f2348
Delegated to: Paul Mundt
Headers show

Commit Message

Peppe CAVALLARO Nov. 17, 2010, 6:51 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/sh/kernel/sys_sh.c b/arch/sh/kernel/sys_sh.c
index 81f5837..8c6a350 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;