Fri Jun 9 06:43:30 2017 UTC ()
Maintain the split of physical memory into the defined freelists, but
only force pool pages to VM_FREELIST_FIRST512M for non _LP64


(skrll)
diff -r1.277 -r1.278 src/sys/arch/mips/mips/mips_machdep.c

cvs diff -r1.277 -r1.278 src/sys/arch/mips/mips/mips_machdep.c (expand / switch to context diff)
--- src/sys/arch/mips/mips/mips_machdep.c 2017/05/07 05:45:07 1.277
+++ src/sys/arch/mips/mips/mips_machdep.c 2017/06/09 06:43:30 1.278
@@ -1,4 +1,4 @@
-/*	$NetBSD: mips_machdep.c,v 1.277 2017/05/07 05:45:07 skrll Exp $	*/
+/*	$NetBSD: mips_machdep.c,v 1.278 2017/06/09 06:43:30 skrll Exp $	*/
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -111,7 +111,7 @@
  */
 
 #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.277 2017/05/07 05:45:07 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.278 2017/06/09 06:43:30 skrll Exp $");
 
 #define __INTR_PRIVATE
 #include "opt_cputype.h"
@@ -2104,13 +2104,14 @@
 #ifdef VM_FREELIST_FIRST4G
 		if (round_page(segs[i].start + segs[i].size) > FOURGIG) {
 			need4g = true;
-			mips_poolpage_vmfreelist = VM_FREELIST_FIRST4G;
 		}
 #endif
 #ifdef VM_FREELIST_FIRST512M
 		if (round_page(segs[i].start + segs[i].size) > HALFGIG) {
 			need512m = true;
+#if !defined(_LP64)
 			mips_poolpage_vmfreelist = VM_FREELIST_FIRST512M;
+#endif
 		}
 #endif
 	}