Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6786fda authored by Giuseppe CAVALLARO's avatar Giuseppe CAVALLARO Committed by Paul Mundt
Browse files

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: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: default avatarCarmelo Amoroso <carmelo.amoroso@st.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 84965337
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;