Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Dec 2007 04:35:20 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 131455 for review
Message-ID:  <200712230435.lBN4ZKHE090143@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=131455

Change 131455 by jb@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.
  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712230435.lBN4ZKHE090143>