Skip to content

Commit

Permalink
sh: avoid to flush all cache in sys_cacheflush
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Giuseppe CAVALLARO authored and Paul Mundt committed Nov 17, 2010
1 parent 8496533 commit a6786fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/kernel/sys_sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a6786fd

Please sign in to comment.