Check the new kern.smp.active sysctl rather than the non-existent

smp.smp_active sysctl to determine if we are running on an SMP machine.
This commit is contained in:
jhb 2001-04-27 19:33:50 +00:00
parent 8bfdafc934
commit cea5d733b2

View File

@ -209,7 +209,7 @@ struct statics *statics;
modelen = sizeof(smpmode);
if ((sysctlbyname("machdep.smp_active", &smpmode, &modelen, NULL, 0) < 0 &&
sysctlbyname("smp.smp_active", &smpmode, &modelen, NULL, 0) < 0) ||
sysctlbyname("kern.smp.active", &smpmode, &modelen, NULL, 0) < 0) ||
modelen != sizeof(smpmode))
smpmode = 0;