]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ps(1): don't try to handle non-SMP systems
authorPiotr Pawel Stefaniak <pstef@FreeBSD.org>
Sat, 27 Jun 2020 20:01:56 +0000 (20:01 +0000)
committerPiotr Pawel Stefaniak <pstef@FreeBSD.org>
Sat, 27 Jun 2020 20:01:56 +0000 (20:01 +0000)
commitac4b8a1ce45ae5f1da70132d697908afff2a581c
treed4cd2da1d3f55378b96b1109b066f9cc38eeb7aa
parent557905569dc5d15cc51bec20e72ebd4f61a91b81
ps(1): don't try to handle non-SMP systems

As reported by kib, sysctl machdep.smp_active doesn't exist and on UP we
return CPU 0 for all threads anyway.

Reported by: kib
bin/ps/extern.h
bin/ps/print.c
bin/ps/ps.c