summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-12-03 14:57:26 +0000
committerjhb <jhb@FreeBSD.org>2003-12-03 14:57:26 +0000
commit4b61439e79ae8fc81441be32c6579c2ccd4cf476 (patch)
treef8ffe15c95979d5e31c1ed4fa7544bebc5db3414 /sys/kern
parent907202ec1f57f255a3cb7245df54cf0e74dc5e43 (diff)
downloadFreeBSD-src-4b61439e79ae8fc81441be32c6579c2ccd4cf476.zip
FreeBSD-src-4b61439e79ae8fc81441be32c6579c2ccd4cf476.tar.gz
Fix all users of mp_maxid to use the same semantics, namely:
1) mp_maxid is a valid FreeBSD CPU ID in the range 0 .. MAXCPU - 1. 2) For all active CPUs in the system, PCPU_GET(cpuid) <= mp_maxid. Approved by: re (scottl) Tested on: i386, amd64, alpha
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sched_ule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index b42be6d..6e18ecb 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -418,7 +418,7 @@ sched_balance(void *arg)
if (smp_started == 0)
goto out;
- for (i = 0; i < mp_maxid; i++) {
+ for (i = 0; i <= mp_maxid; i++) {
if (CPU_ABSENT(i) || (i & stopped_cpus) != 0)
continue;
kseq = KSEQ_CPU(i);
OpenPOWER on IntegriCloud