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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362711
@ -282,10 +282,7 @@ machine_init(struct statics *statics)
|
|||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
size = sizeof(smpmode);
|
size = sizeof(smpmode);
|
||||||
if ((sysctlbyname("machdep.smp_active", &smpmode, &size,
|
if (sysctlbyname("kern.smp.active", &smpmode, &size, NULL, 0) != 0 ||
|
||||||
NULL, 0) != 0 &&
|
|
||||||
sysctlbyname("kern.smp.active", &smpmode, &size,
|
|
||||||
NULL, 0) != 0) ||
|
|
||||||
size != sizeof(smpmode))
|
size != sizeof(smpmode))
|
||||||
smpmode = 0;
|
smpmode = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user