PERFORCE change 131455 for review
John Birrell
jb at FreeBSD.org
Sat Dec 22 20:35:22 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=131455
Change 131455 by jb at jb_freebsd1 on 2007/12/23 04:34:32
Add a SYSINIT to the end of the SI_SUB_SMP to initialise the cyclic
device on the APs just launched.
If the cyclic device is loaded after the kernel is booted, this isn't
necessary because all the CPUs are listed in the pcpu list. It's
only in the case where the cyclic device is loaded by the boot loader
that it will be initialised on cpu0 well before and APs are
launched.
Affected files ...
.. //depot/projects/dtrace/src/sys/cddl/amd64/cyclic_machdep.c#2 edit
Differences ...
==== //depot/projects/dtrace/src/sys/cddl/amd64/cyclic_machdep.c#2 (text+ko) ====
@@ -86,6 +86,15 @@
c->cpu_intr_actv &= ~(1 << CY_LOCK_LEVEL);
}
+static void
+cyclic_ap_start(void *dummy)
+{
+ /* Initialise the rest of the CPUs. */
+ cyclic_mp_init();
+}
+
+SYSINIT(cyclic_ap_start, SI_SUB_SMP, SI_ORDER_ANY, cyclic_ap_start, NULL);
+
/*
* Machine dependent cyclic subsystem initialisation.
*/
More information about the p4-projects
mailing list