summaryrefslogtreecommitdiffstats
path: root/sys/sys/smp.h
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2014-04-26 20:27:54 +0000
committerscottl <scottl@FreeBSD.org>2014-04-26 20:27:54 +0000
commit62a64f0d2b367aa304943ab5c8508059744c6016 (patch)
tree011b9f559b2fe7a4b0f730214125d5b9ed735d61 /sys/sys/smp.h
parentc08e3d03ca9c9ffe7fff07eaa4e6bc25d451b871 (diff)
downloadFreeBSD-src-62a64f0d2b367aa304943ab5c8508059744c6016.zip
FreeBSD-src-62a64f0d2b367aa304943ab5c8508059744c6016.tar.gz
Retire smp_active. It was racey and caused demonstrated problems with
the cpufreq code. Replace its use with smp_started. There's at least one userland tool that still looks at the kern.smp.active sysctl, so preserve it but point it to smp_started as well. Discussed with: peter, jhb MFC after: 3 days Obtained from: Netflix
Diffstat (limited to 'sys/sys/smp.h')
-rw-r--r--sys/sys/smp.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sys/smp.h b/sys/sys/smp.h
index fed12bf..42cb8df 100644
--- a/sys/sys/smp.h
+++ b/sys/sys/smp.h
@@ -71,7 +71,6 @@ struct cpu_group *smp_topo_2level(int l2share, int l2count, int l1share,
struct cpu_group *smp_topo_find(struct cpu_group *top, int cpu);
extern void (*cpustop_restartfunc)(void);
-extern int smp_active;
extern int smp_cpus;
extern volatile cpuset_t started_cpus;
extern volatile cpuset_t stopped_cpus;
@@ -141,7 +140,7 @@ cpu_next(int i)
* cpu_mp_start() will be called so that MP can be enabled. This function
* should do things such as startup secondary processors. It should also
* setup mp_ncpus, all_cpus, and smp_cpus. It should also ensure that
- * smp_active and smp_started are initialized at the appropriate time.
+ * smp_started is initialized at the appropriate time.
* Once cpu_mp_start() returns, machine independent MP startup code will be
* executed and a simple message will be output to the console. Finally,
* cpu_mp_announce() will be called so that machine dependent messages about
OpenPOWER on IntegriCloud