Module Name: src
Committed By: matt
Date: Tue Nov 29 07:45:58 UTC 2011
Modified Files:
src/sys/uvm [matt-nb5-mips64]: uvm_page.c
Log Message:
Add a macro to allow a port to control from which freelists "normal" pages
can be allocated.
To generate a diff of this commit:
cvs rdiff -u -r1.140.6.3.4.5 -r1.140.6.3.4.6 src/sys/uvm/uvm_page.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/uvm/uvm_page.c
diff -u src/sys/uvm/uvm_page.c:1.140.6.3.4.5 src/sys/uvm/uvm_page.c:1.140.6.3.4.6
--- src/sys/uvm/uvm_page.c:1.140.6.3.4.5 Fri Jun 3 07:59:58 2011
+++ src/sys/uvm/uvm_page.c Tue Nov 29 07:45:57 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page.c,v 1.140.6.3.4.5 2011/06/03 07:59:58 matt Exp $ */
+/* $NetBSD: uvm_page.c,v 1.140.6.3.4.6 2011/11/29 07:45:57 matt Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.140.6.3.4.5 2011/06/03 07:59:58 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.140.6.3.4.6 2011/11/29 07:45:57 matt Exp $");
#include "opt_uvmhist.h"
#include "opt_readahead.h"
@@ -1166,6 +1166,14 @@ uvm_pagealloc_strat(struct uvm_object *o
case UVM_PGA_STRAT_NORMAL:
/* Check all freelists in descending priority order. */
for (lcv = 0; lcv < VM_NFREELIST; lcv++) {
+#ifdef VM_FREELIST_NORMALOK_P
+ /*
+ * Verify if this freelist can be used for normal
+ * page allocations.
+ */
+ if (!VM_FREELIST_NORMALOK_P(lcv))
+ continue;
+#endif
pg = uvm_pagealloc_pgfl(ucpu, lcv,
try1, try2, &color, anycolor);
if (pg != NULL)