diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index 03c66129120..c046c6e8967 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -51,7 +51,6 @@ volatile u_int started_cpus; void (*cpustop_restartfunc) __P((void)); int mp_ncpus; -volatile int smp_started; u_int all_cpus; SYSCTL_NODE(_kern, OID_AUTO, smp, CTLFLAG_RD, NULL, "Kernel SMP"); diff --git a/sys/sys/smp.h b/sys/sys/smp.h index f887d08304d..3bb7a8084c4 100644 --- a/sys/sys/smp.h +++ b/sys/sys/smp.h @@ -21,7 +21,7 @@ extern void (*cpustop_restartfunc)(void); extern int mp_ncpus; extern int smp_active; -extern int smp_started; +extern volatile int smp_started; extern int smp_cpus; extern u_int all_cpus; extern volatile u_int started_cpus;