]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/mm/page.c
[MIPS] Fix the fix for divide by zero error in build_{clear,copy}_page
[linux-2.6-omap-h63xx.git] / arch / mips / mm / page.c
index cab81f42eee56589239fdd9d6a8eb0fb5a5e47a9..1edf0cbbeede7e888d05e05c6a61603e2ad62483 100644 (file)
@@ -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);