* Show the cpu# the process is scheduled on even when it is sleeping.
* Add a 'Q' flag for 'R'unnable processes, indicating that it is runnable
but on the user scheduler runq and does not actually have cpu at the
moment.
*cp = 'D'; /* uninterruptable wait */
else
*cp = 'B'; /* uninterruptable lwkt wait */
- break;
+ /*break;*/
case LSRUN:
- *cp = 'R';
- if (KI_LWP(k, tdflags) & (TDF_RUNNING | TDF_RUNQ)) {
+ if (KI_LWP(k, stat) == LSRUN) {
+ *cp = 'R';
+ if (!(KI_LWP(k, tdflags) &
+ (TDF_RUNNING | TDF_RUNQ)))
+ *++cp = 'Q';
+ }
+ /*if (KI_LWP(k, tdflags) & (TDF_RUNNING | TDF_RUNQ))*/ {
++cp;
sprintf(cp, "%d", KI_LWP(k, cpuid));
while (cp[1])