Adapt to recent smp tree changes..
This commit is contained in:
parent
139c7c8e2d
commit
ed550569a2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28819
@ -17,7 +17,7 @@
|
||||
* Steven Wallace <swallace@freebsd.org>
|
||||
* Wolfram Schneider <wosch@FreeBSD.org>
|
||||
*
|
||||
* $Id: machine.c,v 1.4 1997/07/12 10:51:54 peter Exp $
|
||||
* $Id: machine.c,v 1.5 1997/07/14 09:06:46 peter Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -236,7 +236,8 @@ struct statics *statics;
|
||||
struct passwd *pw;
|
||||
|
||||
modelen = sizeof(smpmode);
|
||||
if (sysctlbyname("kern.smp_active", &smpmode, &modelen, NULL, 0) < 0 ||
|
||||
if ((sysctlbyname("machdep.smp_active", &smpmode, &modelen, NULL, 0) < 0 &&
|
||||
sysctlbyname("smp.smp_active", &smpmode, &modelen, NULL, 0) < 0) ||
|
||||
modelen != sizeof(smpmode))
|
||||
smpmode = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user