top: do not try to use sysctl machdep.smp_active.
The sysctl was removed by r76078 in 2001. Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
1eb2246444
commit
5211c24ddf
@ -282,10 +282,7 @@ machine_init(struct statics *statics)
|
||||
size_t size;
|
||||
|
||||
size = sizeof(smpmode);
|
||||
if ((sysctlbyname("machdep.smp_active", &smpmode, &size,
|
||||
NULL, 0) != 0 &&
|
||||
sysctlbyname("kern.smp.active", &smpmode, &size,
|
||||
NULL, 0) != 0) ||
|
||||
if (sysctlbyname("kern.smp.active", &smpmode, &size, NULL, 0) != 0 ||
|
||||
size != sizeof(smpmode))
|
||||
smpmode = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user