Is there a way to defer a device init unless all cpus are running?

John Baldwin jhb at FreeBSD.org
Thu Nov 4 12:55:10 PST 2004


On Wednesday 03 November 2004 11:40 pm, Joseph Koshy wrote:
> I'd like to defer complete initialization of a driver till all CPUs on a
> system have been initialized.  Is this possible today?  Right now I'm
> forced to use a KLD that gets loaded after the system is booted since the
> driver needs to set up per-cpu structures.

You can setup per-cpu structures on the BSP for one, but you can also use a 
SI_SUB_SMP sysinit with an order of SI_ORDER_SECOND or greater.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-smp mailing list