diff options
author | glebius <glebius@FreeBSD.org> | 2013-04-17 18:43:33 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-04-17 18:43:33 +0000 |
commit | a4662e151cfe47441d477fb85adf02f3438e9855 (patch) | |
tree | ea2341b2ec2c32fd44808af7f7ebb13d18b3c272 /sys/kern | |
parent | c70adaa3e0c32d5a21b3f0a9424ade7aa5fa6a1d (diff) | |
download | FreeBSD-src-a4662e151cfe47441d477fb85adf02f3438e9855.zip FreeBSD-src-a4662e151cfe47441d477fb85adf02f3438e9855.tar.gz |
On non-ACPI i386 mp_ncpus is initialized at SI_SUB_CPU, and this
prevents us from creating UMA_ZONE_PCPU zones earlier.
As bandaid shift initialization of counter(9) zone later.
Reviewed by: kib
Reported & tested by: Lytochkin Boris <lytboris gmail.com>
Diffstat (limited to 'sys/kern')
-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 5856cf0..a98ed40 100644 --- a/sys/kern/subr_counter.c +++ b/sys/kern/subr_counter.c @@ -106,4 +106,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_KMEM, SI_ORDER_ANY, counter_startup, NULL); +SYSINIT(counter, SI_SUB_CPU, SI_ORDER_FOURTH, counter_startup, NULL); |