PERFORCE change 63626 for review

John Baldwin jhb at freebsd.org
Tue Oct 26 14:15:47 PDT 2004


On Sunday 24 October 2004 02:35 am, Peter Wemm wrote:
> http://perforce.freebsd.org/chv.cgi?CH=63626
>
> Change 63626 by peter at peter_overcee on 2004/10/24 06:35:44
>
> 	bind to cpu 0 on for shutting down.  It saves a whole bunch of
> 	complications later on.
>
> Affected files ...
>
> .. //depot/projects/hammer/sys/kern/kern_shutdown.c#27 edit
>
> Differences ...
>
> ==== //depot/projects/hammer/sys/kern/kern_shutdown.c#27 (text+ko) ====
>
> @@ -246,6 +246,9 @@
>  {
>  	static int first_buf_printf = 1;
>
> +	/* Do all shutdown processing on cpu0 */
> +	sched_bind(curthread, 0);
> +
>  	/* collect extra flags that shutdown_nice might have set */
>  	howto |= shutdown_howto;

This should really be s/0/boot_cpuid/ (or boot_cpu_id) but that variable first 
needs to be fixed to reflect PCPU_GET(cpuid) on all archs (on x86 it is the 
local APIC ID IIRC).

-- 

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 p4-projects mailing list