Lines Matching defs:estcpu
178 * This gives estcpu influence over 18 priority levels, and leaves nice
180 * either side of estcpu's 18.
274 decay_cpu(fixpt_t loadfac, fixpt_t estcpu)
277 if (estcpu == 0) {
285 return estcpu * loadfac / (loadfac + FSCALE);
289 return (uint64_t)estcpu * loadfac / (loadfac + FSCALE);
293 decay_cpu_batch(fixpt_t loadfac, fixpt_t estcpu, unsigned int n)
309 while (estcpu != 0 && n > 1) {
310 estcpu = decay_cpu(loadfac, estcpu);
314 return estcpu;
466 fixpt_t estcpu;
474 estcpu = decay_cpu_batch(loadfac, child->p_estcpu_inherited,
476 if (cl->l_estcpu > estcpu) {
478 pl->l_estcpu = ESTCPULIM(pl->l_estcpu + cl->l_estcpu - estcpu);
508 /* Absorb estcpu value of collected LWP. */