Searched refs:newnice (Results 1 – 3 of 3) sorted by relevance
1487 int newnice; in fx_donice() local1515 newnice = fxpp->fx_nice + incr; in fx_donice()1516 if (newnice > NZERO) in fx_donice()1517 newnice = NZERO; in fx_donice()1518 else if (newnice < 0) in fx_donice()1519 newnice = 0; in fx_donice()1522 -((newnice - NZERO) * fx_maxupri) / NZERO; in fx_donice()1543 fxpp->fx_nice = (char)newnice; in fx_donice()1546 *retvalp = newnice - NZERO; in fx_donice()
2086 int newnice; in ts_donice() local2114 newnice = tspp->ts_nice + incr; in ts_donice()2115 if (newnice >= 2 * NZERO) in ts_donice()2116 newnice = 2 * NZERO - 1; in ts_donice()2117 else if (newnice < 0) in ts_donice()2118 newnice = 0; in ts_donice()2121 -((newnice - NZERO) * ts_maxupri) / NZERO; in ts_donice()2137 tspp->ts_nice = (char)newnice; in ts_donice()2140 *retvalp = newnice - NZERO; in ts_donice()
2658 int newnice; in fss_donice() local2684 newnice = fssproc->fss_nice + incr; in fss_donice()2685 if (newnice > FSS_NICE_MAX) in fss_donice()2686 newnice = FSS_NICE_MAX; in fss_donice()2687 else if (newnice < FSS_NICE_MIN) in fss_donice()2688 newnice = FSS_NICE_MIN; in fss_donice()2691 -((newnice - NZERO) * fss_maxupri) / NZERO; in fss_donice()2706 fssproc->fss_nice = (char)newnice; in fss_donice()2709 *retvalp = newnice - NZERO; in fss_donice()