Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Switch from only UVM_PGA_STRAT_ONLY to UV...
details: https://anonhg.NetBSD.org/src/rev/c7e32796ad9d
branches: trunk
changeset: 784119:c7e32796ad9d
user: matt <matt%NetBSD.org@localhost>
date: Sat Jan 19 00:15:09 2013 +0000
description:
Switch from only UVM_PGA_STRAT_ONLY to UVM_PGA_STRAT_FALLBACK in
arm_pmap_alloc_poolpage.
diffstat:
sys/arch/arm/arm32/pmap.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 57105f3978c1 -r c7e32796ad9d sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Sat Jan 19 00:14:11 2013 +0000
+++ b/sys/arch/arm/arm32/pmap.c Sat Jan 19 00:15:09 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.247 2013/01/11 12:04:00 matt Exp $ */
+/* $NetBSD: pmap.c,v 1.248 2013/01/19 00:15:09 matt Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -212,7 +212,7 @@
#include <arm/cpuconf.h>
#include <arm/arm32/katelib.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.247 2013/01/11 12:04:00 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.248 2013/01/19 00:15:09 matt Exp $");
#ifdef PMAP_DEBUG
@@ -6929,11 +6929,13 @@
{
/*
* On some systems, only some pages may be "coherent" for dma and we
- * want to use those for pool pages (think mbufs).
+ * want to prefer those for pool pages (think mbufs) but fallback to
+ * any page if none is available.
*/
- if (arm_poolpage_vmfreelist != VM_FREELIST_DEFAULT)
+ if (arm_poolpage_vmfreelist != VM_FREELIST_DEFAULT) {
return uvm_pagealloc_strat(NULL, 0, NULL, flags,
- UVM_PGA_STRAT_ONLY, arm_poolpage_vmfreelist);
+ UVM_PGA_STRAT_FALLBACK, arm_poolpage_vmfreelist);
+ }
return uvm_pagealloc(NULL, 0, NULL, flags);
}
Home |
Main Index |
Thread Index |
Old Index