summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-10-24 04:38:44 +0000
committerdlg <dlg@openbsd.org>2016-10-24 04:38:44 +0000
commit6e021050851a43a3f9ea0247fef63e44a3c1fd81 (patch)
tree106e5de50a0af5052788242d23743c2d27254a46 /sys/kern/init_main.c
parentMake mfii(4) bio(4) capable. (diff)
downloadwireguard-openbsd-6e021050851a43a3f9ea0247fef63e44a3c1fd81.tar.xz
wireguard-openbsd-6e021050851a43a3f9ea0247fef63e44a3c1fd81.zip
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();