svn commit: r221278 - in projects/largeSMP/sys: kern sys
Attilio Rao
attilio at FreeBSD.org
Sat Apr 30 22:30:18 UTC 2011
Author: attilio
Date: Sat Apr 30 22:30:18 2011
New Revision: 221278
URL: http://svn.freebsd.org/changeset/base/221278
Log:
idle_cpus_mask is just used in the SMP case and within sched_4BSD.
Declare appropriately.
Modified:
projects/largeSMP/sys/kern/sched_4bsd.c
projects/largeSMP/sys/kern/subr_smp.c
projects/largeSMP/sys/sys/smp.h
Modified: projects/largeSMP/sys/kern/sched_4bsd.c
==============================================================================
--- projects/largeSMP/sys/kern/sched_4bsd.c Sat Apr 30 22:24:45 2011 (r221277)
+++ projects/largeSMP/sys/kern/sched_4bsd.c Sat Apr 30 22:30:18 2011 (r221278)
@@ -155,6 +155,8 @@ static struct runq runq;
*/
static struct runq runq_pcpu[MAXCPU];
long runq_length[MAXCPU];
+
+static cpumask_t idle_cpus_mask;
#endif
struct pcpuidlestat {
Modified: projects/largeSMP/sys/kern/subr_smp.c
==============================================================================
--- projects/largeSMP/sys/kern/subr_smp.c Sat Apr 30 22:24:45 2011 (r221277)
+++ projects/largeSMP/sys/kern/subr_smp.c Sat Apr 30 22:30:18 2011 (r221278)
@@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$");
#ifdef SMP
volatile cpumask_t stopped_cpus;
volatile cpumask_t started_cpus;
-cpumask_t idle_cpus_mask;
cpumask_t hlt_cpus_mask;
cpumask_t logical_cpus_mask;
Modified: projects/largeSMP/sys/sys/smp.h
==============================================================================
--- projects/largeSMP/sys/sys/smp.h Sat Apr 30 22:24:45 2011 (r221277)
+++ projects/largeSMP/sys/sys/smp.h Sat Apr 30 22:30:18 2011 (r221278)
@@ -73,7 +73,6 @@ extern int smp_active;
extern int smp_cpus;
extern volatile cpumask_t started_cpus;
extern volatile cpumask_t stopped_cpus;
-extern cpumask_t idle_cpus_mask;
extern cpumask_t hlt_cpus_mask;
extern cpumask_t logical_cpus_mask;
#endif /* SMP */
More information about the svn-src-projects
mailing list