Searched refs:CPU (Results 1 - 3 of 3) sorted by relevance

/ast/src/cmd/ss/
H A Dss.c70 #define CPU 1 macro
144 case CPU:
193 n = CPU;
/ast/src/cmd/coshell/
H A Dcommand.c686 sfprintf(state.string, "CON JOBS TOTAL USER SYS IDLE CPU LOAD RATING BIAS TYPE HOST\n");
759 sfprintf(state.string, "SHELLS USERS JOBS CMDS UP REAL USER SYS CPU LOAD RATING\n");
H A Dschedule.c44 #define CPU(n,v) ((v)*100/(10+((n)-1)*W_CPU/10)/10) macro
46 #define RNK(p,a) (((p)->mode&SHELL_DISABLE)?INT_MAX:((p)->flags&IGN)?(INT_MAX/2):((((p)->stat.load/(p)->scale)+((p)->running*BIAS+CPU((p)->cpu,(a)->bias)))*(p)->bias*(((p)==state.home&&(p)->cpu==1)?400:100)/(p)->rating))
499 n += W_LOAD * (((sp->stat.load / sp->scale) + CPU(sp->cpu, W_JOB * LOAD)) / T_LOAD) * sp->bias / sp->rating;

Completed in 13 milliseconds