Searched refs:newnice (Results 1 – 3 of 3) sorted by relevance
1481 int newnice; in fx_donice() local1509 newnice = fxpp->fx_nice + incr; in fx_donice()1510 if (newnice > NZERO) in fx_donice()1511 newnice = NZERO; in fx_donice()1512 else if (newnice < 0) in fx_donice()1513 newnice = 0; in fx_donice()1516 -((newnice - NZERO) * fx_maxupri) / NZERO; in fx_donice()1537 fxpp->fx_nice = (char)newnice; in fx_donice()1540 *retvalp = newnice - NZERO; in fx_donice()
1983 int newnice; in ts_donice() local2011 newnice = tspp->ts_nice + incr; in ts_donice()2012 if (newnice >= 2 * NZERO) in ts_donice()2013 newnice = 2 * NZERO - 1; in ts_donice()2014 else if (newnice < 0) in ts_donice()2015 newnice = 0; in ts_donice()2018 -((newnice - NZERO) * ts_maxupri) / NZERO; in ts_donice()2034 tspp->ts_nice = (char)newnice; in ts_donice()2037 *retvalp = newnice - NZERO; in ts_donice()
2550 int newnice; in fss_donice() local2576 newnice = fssproc->fss_nice + incr; in fss_donice()2577 if (newnice > FSS_NICE_MAX) in fss_donice()2578 newnice = FSS_NICE_MAX; in fss_donice()2579 else if (newnice < FSS_NICE_MIN) in fss_donice()2580 newnice = FSS_NICE_MIN; in fss_donice()2583 -((newnice - NZERO) * fss_maxupri) / NZERO; in fss_donice()2598 fssproc->fss_nice = (char)newnice; in fss_donice()2601 *retvalp = newnice - NZERO; in fss_donice()