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:
Konstantin Belousov 2020-06-28 00:29:21 +00:00
parent 1eb2246444
commit 5211c24ddf

View File

@ -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;