Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jul 2020 06:50:22 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r362939 - stable/12/usr.bin/top
Message-ID:  <202007050650.0656oM0o030322@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Jul  5 06:50:22 2020
New Revision: 362939
URL: https://svnweb.freebsd.org/changeset/base/362939

Log:
  MFC r362711:
  top: do not try to use sysctl machdep.smp_active.

Modified:
  stable/12/usr.bin/top/machine.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.bin/top/machine.c
==============================================================================
--- stable/12/usr.bin/top/machine.c	Sun Jul  5 05:14:33 2020	(r362938)
+++ stable/12/usr.bin/top/machine.c	Sun Jul  5 06:50:22 2020	(r362939)
@@ -278,10 +278,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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007050650.0656oM0o030322>