mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
smp.h: Reconcile definition and declaration of smp_ncpus
The variable is defined unconditionally; declare it unconditionally as well. It is already initialized to the correct value (1) for !SMP builds. No functional change.
This commit is contained in:
parent
0292c54bdb
commit
6eecc07f65
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364130
@ -154,7 +154,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_cpus;
|
||||
/* The suspend/resume cpusets are x86 only, but minimize ifdefs. */
|
||||
extern volatile cpuset_t resuming_cpus; /* woken up cpus in suspend pen */
|
||||
extern volatile cpuset_t started_cpus; /* cpus to let out of stop pen */
|
||||
@ -169,6 +168,7 @@ extern u_int mp_maxid;
|
||||
extern int mp_maxcpus;
|
||||
extern int mp_ncores;
|
||||
extern int mp_ncpus;
|
||||
extern int smp_cpus;
|
||||
extern volatile int smp_started;
|
||||
extern int smp_threads_per_core;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user