diff options
Diffstat (limited to 'sys/kern/uipc_domain.c')
-rw-r--r-- | sys/kern/uipc_domain.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c index 98fba8f..33a21c5 100644 --- a/sys/kern/uipc_domain.c +++ b/sys/kern/uipc_domain.c @@ -71,6 +71,7 @@ static void pfslowtimo(void *); struct domain *domains; /* registered protocol domains */ struct mtx dom_mtx; /* domain list lock */ +MTX_SYSINIT(domain, &dom_mtx, "domain list", MTX_DEF); /* * Add a new protocol domain to the list of supported domains @@ -130,8 +131,6 @@ domaininit(void *dummy) NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); uma_zone_set_max(socket_zone, maxsockets); - mtx_init(&dom_mtx, "domain list lock", NULL, MTX_DEF); - if (max_linkhdr < 16) /* XXX */ max_linkhdr = 16; |