summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorAriane van der Steldt <ariane@cvs.openbsd.org>2011-06-23 21:42:06 +0000
committerAriane van der Steldt <ariane@cvs.openbsd.org>2011-06-23 21:42:06 +0000
commitf6072dd442f07ea7c3ed10002ec772a84cbaf881 (patch)
tree200f9b7f7c2c9161c03f9bac7419aefe3746eb0b /sys/kern
parent15bca3199004ca05908945845371a22ec6316104 (diff)
Make mbufs and dma_alloc be contig allocations.
Requested by dlg@ ok oga@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/dma_alloc.c4
-rw-r--r--sys/kern/uipc_mbuf.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/dma_alloc.c b/sys/kern/dma_alloc.c
index a38a48f7d2a..504f75c7e26 100644
--- a/sys/kern/dma_alloc.c
+++ b/sys/kern/dma_alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dma_alloc.c,v 1.8 2011/04/18 19:23:46 art Exp $ */
+/* $OpenBSD: dma_alloc.c,v 1.9 2011/06/23 21:42:05 ariane Exp $ */
/*
* Copyright (c) 2010 Theo de Raadt <deraadt@openbsd.org>
*
@@ -37,7 +37,7 @@ dma_alloc_init(void)
1 << (i + DMA_BUCKET_OFFSET));
pool_init(&dmapools[i], 1 << (i + DMA_BUCKET_OFFSET), 0, 0, 0,
dmanames[i], NULL);
- pool_set_constraints(&dmapools[i], &kp_dma);
+ pool_set_constraints(&dmapools[i], &kp_dma_contig);
pool_setipl(&dmapools[i], IPL_VM);
/* XXX need pool_setlowat(&dmapools[i], dmalowat); */
}
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 24f877c607f..71019564e19 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.157 2011/05/04 16:05:49 blambert Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.158 2011/06/23 21:42:05 ariane Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -141,7 +141,7 @@ mbinit(void)
int i;
pool_init(&mbpool, MSIZE, 0, 0, 0, "mbpl", NULL);
- pool_set_constraints(&mbpool, &kp_dma);
+ pool_set_constraints(&mbpool, &kp_dma_contig);
pool_setlowat(&mbpool, mblowat);
for (i = 0; i < nitems(mclsizes); i++) {
@@ -149,7 +149,7 @@ mbinit(void)
mclsizes[i] >> 10);
pool_init(&mclpools[i], mclsizes[i], 0, 0, 0,
mclnames[i], NULL);
- pool_set_constraints(&mclpools[i], &kp_dma);
+ pool_set_constraints(&mclpools[i], &kp_dma_contig);
pool_setlowat(&mclpools[i], mcllowat);
}