Fix the kinfo run/sleep state for pure kernel threads. This effects /bin/ps
commit8237391c0a9536ee00d800067a7ba33b07f2b744
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 24 May 2007 05:45:45 +0000 (24 05:45 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 24 May 2007 05:45:45 +0000 (24 05:45 +0000)
tree03670e0a89f8b7dc7500d95733815530010be85f
parent13be92bba9f79312db35f5c666ad06cd4c3c5ec8
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