* When spinning on a token or the mplock set the wmesg so it shows up
in ps and top output.
#endif
goto havethread;
}
+
+ /*
+ * Thread was runnable but we were unable to get the required
+ * resources (tokens and/or mplock).
+ */
#ifdef SMP
+ ntd->td_wmesg = lmsg;
if (ntd->td_fairq_accum >= 0)
set_cpu_contention_mask(gd);
/*
havethread:
++gd->gd_cnt.v_swtch;
--ntd->td_fairq_accum;
+ ntd->td_wmesg = NULL;
xtd = TAILQ_FIRST(&gd->gd_tdrunq);
if (ntd != xtd && ntd->td_pri >= xtd->td_pri) {
TAILQ_REMOVE(&gd->gd_tdrunq, ntd, td_threadq);
*/
static char smp_header[] =
-" PID %-*.*s NICE SIZE PRES STATE C TIME CTIME CPU COMMAND";
+" PID %-*.*s NICE SIZE PRES STATE CPU TIME CTIME CPU COMMAND";
#define smp_Proc_format \
- "%5d %-*.*s %3d%7s %6s %7.7s %02d %6s %7s %5.2f%% %.*s"
+ "%5d %-*.*s %3d%7s %6s %7.7s %2d %6s %7s %5.2f%% %.*s"
static char up_header[] =
" PID %-*.*s NICE SIZE PRES STATE TIME CTIME CPU COMMAND";