提交 a6786fda 编写于 作者: G Giuseppe CAVALLARO 提交者: Paul Mundt

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: NGiuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: NCarmelo Amoroso <carmelo.amoroso@st.com>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 84965337
...@@ -88,7 +88,7 @@ asmlinkage int sys_cacheflush(unsigned long addr, unsigned long len, int op) ...@@ -88,7 +88,7 @@ asmlinkage int sys_cacheflush(unsigned long addr, unsigned long len, int op)
} }
if (op & CACHEFLUSH_I) if (op & CACHEFLUSH_I)
flush_cache_all(); flush_icache_range(addr, addr+len);
up_read(&current->mm->mmap_sem); up_read(&current->mm->mmap_sem);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册