Deleted Added
full compact
33c33
< __FBSDID("$FreeBSD: head/sys/kern/subr_smp.c 261520 2014-02-05 18:13:27Z jhb $");
---
> __FBSDID("$FreeBSD: head/sys/kern/subr_smp.c 264984 2014-04-26 20:27:54Z scottl $");
61a62,64
>
> static int sysctl_kern_smp_active(SYSCTL_HANDLER_ARGS);
>
81,83c84,85
< int smp_active = 0; /* are the APs allowed to run? */
< SYSCTL_INT(_kern_smp, OID_AUTO, active, CTLFLAG_RW, &smp_active, 0,
< "Number of Auxillary Processors (APs) that were successfully started");
---
> SYSCTL_PROC(_kern_smp, OID_AUTO, active, CTLFLAG_RD | CTLTYPE_INT, NULL, 0,
> sysctl_kern_smp_active, "I", "Indicates system is running in SMP mode");
833a836,847
>
> /* Extra care is taken with this sysctl because the data type is volatile */
> static int
> sysctl_kern_smp_active(SYSCTL_HANDLER_ARGS)
> {
> int error, active;
>
> active = smp_started;
> error = SYSCTL_OUT(req, &active, sizeof(active));
> return (error);
> }
>