summaryrefslogtreecommitdiff
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-10-24 04:38:45 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-10-24 04:38:45 +0000
commita5320e56ee2e852556699189969cf501fec78bd0 (patch)
tree370e9fa076017dce3e53c8ed98adaafef310aba8 /sys/kern/init_main.c
parentc9debdefd39a16d906c5395291ba65e9cac0d1ee (diff)
move the mbstat structure to percpu counters
each cpus counters still have to be protected by splnet, but this is better thana single set of counters protected by a global mutex. ok bluhm@
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index d65e00cfa82..90cdd985516 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.260 2016/10/21 06:27:50 dlg Exp $ */
+/* $OpenBSD: init_main.c,v 1.261 2016/10/24 04:38:44 dlg Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -415,6 +415,8 @@ main(void *framep)
prof_init();
#endif
+ mbcpuinit(); /* enable per cpu mbuf data */
+
/* init exec and emul */
init_exec();