From 8f779cc541a33f480a2838ca3e83e9352275e224 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Wed, 17 Apr 2013 18:43:33 +0000 Subject: [PATCH] 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 --- sys/kern/subr_counter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_counter.c b/sys/kern/subr_counter.c index 5856cf0556a3..a98ed405072d 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);