diff options
author | pluknet <pluknet@FreeBSD.org> | 2011-01-21 10:26:26 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2011-01-21 10:26:26 +0000 |
commit | 5f536fc1d3dfb28e75a18d60bddcfacdf3f22617 (patch) | |
tree | 7eea8c732d50e7ebda3498e40f7ccad228cc1453 /sys/sun4v | |
parent | 8309d738784bb61d488dbea96837e5d407437cfc (diff) | |
download | FreeBSD-src-5f536fc1d3dfb28e75a18d60bddcfacdf3f22617.zip FreeBSD-src-5f536fc1d3dfb28e75a18d60bddcfacdf3f22617.tar.gz |
Make MSGBUF_SIZE kernel option a loader tunable kern.msgbufsize.
Submitted by: perryh pluto.rain.com (previous version)
Reviewed by: jhb
Approved by: kib (mentor)
Tested by: universe
Diffstat (limited to 'sys/sun4v')
-rw-r--r-- | sys/sun4v/sun4v/machdep.c | 3 | ||||
-rw-r--r-- | sys/sun4v/sun4v/pmap.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/sun4v/sun4v/machdep.c b/sys/sun4v/sun4v/machdep.c index 43496e3..9475933 100644 --- a/sys/sun4v/sun4v/machdep.c +++ b/sys/sun4v/sun4v/machdep.c @@ -41,7 +41,6 @@ __FBSDID("$FreeBSD$"); #include "opt_compat.h" #include "opt_ddb.h" #include "opt_kstack_pages.h" -#include "opt_msgbuf.h" #include <sys/param.h> #include <sys/malloc.h> @@ -504,7 +503,7 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec) */ BVPRINTF("initialize msgbuf\n"); dpcpu_init(dpcpu0, 0); - msgbufinit(msgbufp, MSGBUF_SIZE); + msgbufinit(msgbufp, msgbufsize); BVPRINTF("initialize mutexes\n"); mutex_init(); diff --git a/sys/sun4v/sun4v/pmap.c b/sys/sun4v/sun4v/pmap.c index db4c245..502da80 100644 --- a/sys/sun4v/sun4v/pmap.c +++ b/sys/sun4v/sun4v/pmap.c @@ -29,7 +29,6 @@ __FBSDID("$FreeBSD$"); #include "opt_kstack_pages.h" -#include "opt_msgbuf.h" #include "opt_pmap.h" #include "opt_trap_trace.h" @@ -782,7 +781,7 @@ skipshuffle: /* * Allocate and map the message buffer. */ - msgbuf_phys = pmap_bootstrap_alloc(MSGBUF_SIZE); + msgbuf_phys = pmap_bootstrap_alloc(msgbufsize); msgbufp = (struct msgbuf *)TLB_PHYS_TO_DIRECT(msgbuf_phys); /* |