PERFORCE change 131732 for review
John Birrell
jb at FreeBSD.org
Wed Dec 26 14:10:25 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=131732
Change 131732 by jb at jb_freebsd1 on 2007/12/26 22:09:42
Use SMP_MAXCPU here rather than mp_maxid because this code can execute
before the APs are enabled. We really just need the global array
initialised and this can be done regardless of whether or not all
the possible CPUs are eventually put online.
Affected files ...
.. //depot/projects/dtrace/src/sys/cddl/kern/kern_cyclic.c#8 edit
Differences ...
==== //depot/projects/dtrace/src/sys/cddl/kern/kern_cyclic.c#8 (text+ko) ====
@@ -43,7 +43,7 @@
* that the asserts work. On FreeBSD, if a CPU exists, it is
* enabled.
*/
- for (i = 0; i <= mp_maxid; i++) {
+ for (i = 0; i < SMP_MAXCPU; i++) {
cyclic_cpu[i].cpuid = i;
cyclic_cpu[i].cpu_flags &= CPU_ENABLE;
}
More information about the p4-projects
mailing list