diff options
author | glebius <glebius@FreeBSD.org> | 2013-07-23 11:16:40 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-07-23 11:16:40 +0000 |
commit | 8a9169a4bacebc44492e96a0afc72be4c61ceea0 (patch) | |
tree | 50c0bc2b8fdbbdabb3ddbb944a23928e7f9d8ea7 /sys/kern/subr_counter.c | |
parent | 0f5a145fe0fcb6e9907f1458db21e478f874b760 (diff) | |
download | FreeBSD-src-8a9169a4bacebc44492e96a0afc72be4c61ceea0.zip FreeBSD-src-8a9169a4bacebc44492e96a0afc72be4c61ceea0.tar.gz |
Revert r249590 and in case if mp_ncpus isn't initialized use MAXCPU. This
allows us to init counter zone at early stage of boot.
Reviewed by: kib
Tested by: Lytochkin Boris <lytboris gmail.com>
Diffstat (limited to 'sys/kern/subr_counter.c')
-rw-r--r-- | sys/kern/subr_counter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_counter.c b/sys/kern/subr_counter.c index 2656ed7..b3ddc7a 100644 --- a/sys/kern/subr_counter.c +++ b/sys/kern/subr_counter.c @@ -104,4 +104,4 @@ counter_startup(void) uint64_pcpu_zone = uma_zcreate("uint64 pcpu", sizeof(uint64_t), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_PCPU); } -SYSINIT(counter, SI_SUB_CPU, SI_ORDER_FOURTH, counter_startup, NULL); +SYSINIT(counter, SI_SUB_KMEM, SI_ORDER_ANY, counter_startup, NULL); |