]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ps(1): don't try to handle non-SMP systems
authorpstef <pstef@FreeBSD.org>
Sat, 27 Jun 2020 20:01:56 +0000 (20:01 +0000)
committerpstef <pstef@FreeBSD.org>
Sat, 27 Jun 2020 20:01:56 +0000 (20:01 +0000)
commitee18d3b1096f35e712a4af904e7307e2ab71c330
treed4cd2da1d3f55378b96b1109b066f9cc38eeb7aa
parent0730d174fe664c3902f0b88c1ff9cd565b126d3a
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