1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

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:
John Baldwin 2001-04-27 19:33:50 +00:00
parent 6caa8a1501
commit 2522796e9d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76079

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;