svn commit: r364130 - head/sys/sys

Conrad Meyer cem at FreeBSD.org
Tue Aug 11 20:42:22 UTC 2020


Author: cem
Date: Tue Aug 11 20:42:21 2020
New Revision: 364130
URL: https://svnweb.freebsd.org/changeset/base/364130

Log:
  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.

Modified:
  head/sys/sys/smp.h

Modified: head/sys/sys/smp.h
==============================================================================
--- head/sys/sys/smp.h	Tue Aug 11 20:37:45 2020	(r364129)
+++ head/sys/sys/smp.h	Tue Aug 11 20:42:21 2020	(r364130)
@@ -154,7 +154,6 @@ struct cpu_group *smp_topo_2level(int l2share, int l2c
 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;
 


More information about the svn-src-head mailing list