svn commit: r249590 - head/sys/kern

Gleb Smirnoff glebius at FreeBSD.org
Wed Apr 17 18:43:34 UTC 2013


Author: glebius
Date: Wed Apr 17 18:43:33 2013
New Revision: 249590
URL: http://svnweb.freebsd.org/changeset/base/249590

Log:
  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>

Modified:
  head/sys/kern/subr_counter.c

Modified: head/sys/kern/subr_counter.c
==============================================================================
--- head/sys/kern/subr_counter.c	Wed Apr 17 18:26:01 2013	(r249589)
+++ head/sys/kern/subr_counter.c	Wed Apr 17 18:43:33 2013	(r249590)
@@ -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);


More information about the svn-src-all mailing list