From: Atsushi Nemoto Date: Fri, 30 May 2008 04:07:21 +0000 (+0900) Subject: [MIPS] Fix the fix for divide by zero error in build_{clear,copy}_page X-Git-Tag: v2.6.26-rc7~29^2~12 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7bd0fea2c590d94995c2ee0b32e786c1c62621fa;p=linux-2.6-omap-h63xx.git [MIPS] Fix the fix for divide by zero error in build_{clear,copy}_page Signed-off-by: Ralf Baechle --- 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);