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:
parent
8bfdafc934
commit
cea5d733b2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user