Wait for smp_start

John Baldwin jhb at freebsd.org
Wed Jan 31 22:53:19 UTC 2007


On Saturday 27 January 2007 19:35, Alin-Adrian Anton wrote:
> Hi guys,
> 
> 	I'm using 6.1.
> 
> 	I'm trying to make a kernel module sleep and wait for all the 
> CPUs/cores to be up and running. Is there any elegant way of doing this now?
> 
> 	As far as I digged I found smp_started variable, but that's kinda 
> unreliable. I need to be woken up when this is atomically set to 1.
> 
> 	I'll appreciate any suggestion and your time. Please CC to my address.
> 
> 	Thanks!

Use a SI_SUB_SMP SYSINIT.

-- 
John Baldwin


More information about the freebsd-smp mailing list