Fix the kinfo run/sleep state for pure kernel threads. This effects /bin/ps
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 24 May 2007 05:45:45 +0000 (05:45 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 24 May 2007 05:45:45 +0000 (05:45 +0000)
commitf4cf4cb801bfdc3484f5984d41ea4dfb02c2e54f
treef5da862ec126a7bb5a93b72f373796cb920d5714
parentfaa575e70ed3fd63fdeeb1726d36f1f77487a60f
Fix the kinfo run/sleep state for pure kernel threads.  This effects /bin/ps
and so forth.  A pure kernel thread can deschedule itself without having
to set td_wchan[], so use its presence on the LWKT run queue to determine
whether it is running or not.
sys/kern/kern_kinfo.c