Both 'ps' and the loadav calculations got broken by thread sleeps, which
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 10 Jun 2004 22:11:39 +0000 (22:11 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 10 Jun 2004 22:11:39 +0000 (22:11 +0000)
commitd9d6cb99e70fa91775bbe8502650b6ded2b92db3
tree1b3f5bdc1f534ac369bfe20aeb96653dd2bb6f92
parent7e310d2f71d9f74f0dde217d90cae819b42373ce
Both 'ps' and the loadav calculations got broken by thread sleeps, which
occur without knowledge by the proc and so ps/loadav thought processes
sitting in e.g. accept() were in a 'R'un state when they were actually
sleeping.

Make ps and the loadav calculator thread-aware.
bin/ps/print.c
sys/kern/kern_proc.c
sys/kern/kern_synch.c
sys/kern/lwkt_msgport.c
sys/sys/thread.h