summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2008-05-30 13:07:21 +0900
committerRalf Baechle <ralf@linux-mips.org>2008-06-16 15:14:47 +0100
commit7bd0fea2c590d94995c2ee0b32e786c1c62621fa (patch)
treec7a64a63a58bef3dd378ebf2aedadcaa5944af63 /arch/mips/mm
parent89052bd7b393434f7c573ce6a3b88c5f143586d2 (diff)
[MIPS] Fix the fix for divide by zero error in build_{clear,copy}_page
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm')
-rw-r--r--arch/mips/mm/page.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/page.c b/arch/mips/mm/page.c
index cab81f42eee..1edf0cbbeed 100644
--- a/arch/mips/mm/page.c
+++ b/arch/mips/mm/page.c
@@ -460,7 +460,7 @@ void __cpuinit build_copy_page(void)
build_copy_load_pref(&buf, -off);
off -= cache_line_size;
}
- off = cache_line_size ? min(8, pref_bias_copy_load / cache_line_size) *
+ off = cache_line_size ? min(8, pref_bias_copy_store / cache_line_size) *
cache_line_size : 0;
while (off) {
build_copy_store_pref(&buf, -off);