提交 c4845a4b 编写于 作者: P Paul Mundt

sh: Fix up redundant cache flushing for PAGE_SIZE > 4k.

If PAGE_SIZE is presently over 4k we do a lot of extra flushing given
that we purge the cache 4k at a time. Make it explicitly 4k per
iteration, rather than iterating for PAGE_SIZE before looping over again.
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 deaef20e
......@@ -357,7 +357,7 @@ static void __flush_cache_4096(unsigned long addr, unsigned long phys,
* pointless nead-of-loop check for 0 iterations.
*/
do {
ea = base_addr + PAGE_SIZE;
ea = base_addr + 4096;
a = base_addr;
p = phys;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册