diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-09-09 04:13:07 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-09-09 04:13:07 -0400 |
commit | c4845a4b2288a9e5d96a0558e474809028c8aff3 (patch) | |
tree | ebe4ecedec6d68b131fc3803363b9b3020b958f9 /arch/sh/mm/cache-sh4.c | |
parent | deaef20e9789d93c06d2d3b5ffc99939814802ca (diff) |
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: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/cache-sh4.c')
-rw-r--r-- | arch/sh/mm/cache-sh4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c index e3fbd99b323c..8362d312ad94 100644 --- a/arch/sh/mm/cache-sh4.c +++ b/arch/sh/mm/cache-sh4.c | |||
@@ -357,7 +357,7 @@ static void __flush_cache_4096(unsigned long addr, unsigned long phys, | |||
357 | * pointless nead-of-loop check for 0 iterations. | 357 | * pointless nead-of-loop check for 0 iterations. |
358 | */ | 358 | */ |
359 | do { | 359 | do { |
360 | ea = base_addr + PAGE_SIZE; | 360 | ea = base_addr + 4096; |
361 | a = base_addr; | 361 | a = base_addr; |
362 | p = phys; | 362 | p = phys; |
363 | 363 | ||