summaryrefslogtreecommitdiffstats
path: root/sys/sys/smp.h
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/sys/smp.h
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/sys/smp.h')
-rw-r--r--sys/sys/smp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/smp.h b/sys/sys/smp.h
index cd96ebe..519e917 100644
--- a/sys/sys/smp.h
+++ b/sys/sys/smp.h
@@ -81,7 +81,7 @@ extern volatile int smp_started;
* The cpu_setmaxid() function is called very early during the boot process
* so that the MD code may set mp_maxid to provide an upper bound on CPU IDs
* that other subsystems may use. If a platform is not able to determine
- * the exact maximum ID that early, then it may set mp_maxid to MAXCPU.
+ * the exact maximum ID that early, then it may set mp_maxid to MAXCPU - 1.
*/
struct thread;
OpenPOWER on IntegriCloud