summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2012-10-26 17:31:35 +0000
committerandre <andre@FreeBSD.org>2012-10-26 17:31:35 +0000
commita8b2ff5af71d9d7536b37f7255566c36f5bccf1f (patch)
tree9492a84eb464de435974af90f099125c5fc65d0a /sys/vm
parentcc93b91b81aa385b660a4d4fa680acec2e2eb002 (diff)
downloadFreeBSD-src-a8b2ff5af71d9d7536b37f7255566c36f5bccf1f.zip
FreeBSD-src-a8b2ff5af71d9d7536b37f7255566c36f5bccf1f.tar.gz
Move the corresponding MTX_SYSINIT() next to their struct mtx declaration
to make their relationship more obvious as done with the other such mutexs.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_glue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index ef44351..f44f04c 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -307,6 +307,8 @@ struct kstack_cache_entry *kstack_cache;
static int kstack_cache_size = 128;
static int kstacks;
static struct mtx kstack_cache_mtx;
+MTX_SYSINIT(kstack_cache, &kstack_cache_mtx, "kstkch", MTX_DEF);
+
SYSCTL_INT(_vm, OID_AUTO, kstack_cache_size, CTLFLAG_RW, &kstack_cache_size, 0,
"");
SYSCTL_INT(_vm, OID_AUTO, kstacks, CTLFLAG_RD, &kstacks, 0,
@@ -486,7 +488,6 @@ kstack_cache_init(void *nulll)
EVENTHANDLER_PRI_ANY);
}
-MTX_SYSINIT(kstack_cache, &kstack_cache_mtx, "kstkch", MTX_DEF);
SYSINIT(vm_kstacks, SI_SUB_KTHREAD_INIT, SI_ORDER_ANY, kstack_cache_init, NULL);
#ifndef NO_SWAPPING
OpenPOWER on IntegriCloud