Searched refs:newpriority (Results 1 – 2 of 2) sorted by relevance
1094 int newpriority; in dfly_resetpriority() local1126 newpriority = PRIBASE_REALTIME + in dfly_resetpriority()1143 newpriority = (lp->lwp_proc->p_nice - PRIO_MIN) * in dfly_resetpriority()1145 newpriority += estcpu * PPQ / ESTCPUPPQ; in dfly_resetpriority()1146 if (newpriority < 0) in dfly_resetpriority()1147 newpriority = 0; in dfly_resetpriority()1148 if (newpriority >= MAXPRI) in dfly_resetpriority()1149 newpriority = MAXPRI - 1; in dfly_resetpriority()1150 newpriority += PRIBASE_NORMAL; in dfly_resetpriority()1153 newpriority = PRIBASE_IDLE + (lp->lwp_rtprio.prio & PRIMASK); in dfly_resetpriority()[all …]
1106 int newpriority; in bsd4_resetpriority() local1123 newpriority = PRIBASE_REALTIME + in bsd4_resetpriority()1139 newpriority = (lp->lwp_proc->p_nice - PRIO_MIN) * PPQ / NICEPPQ; in bsd4_resetpriority()1140 newpriority += estcpu * PPQ / ESTCPUPPQ; in bsd4_resetpriority()1141 newpriority = newpriority * MAXPRI / (PRIO_RANGE * PPQ / in bsd4_resetpriority()1143 newpriority = PRIBASE_NORMAL + (newpriority & PRIMASK); in bsd4_resetpriority()1146 newpriority = PRIBASE_IDLE + (lp->lwp_rtprio.prio & PRIMASK); in bsd4_resetpriority()1149 newpriority = PRIBASE_THREAD + (lp->lwp_rtprio.prio & PRIMASK); in bsd4_resetpriority()1164 lp->lwp_thread->td_upri = -(newpriority & ~PPQMASK); in bsd4_resetpriority()1165 if ((lp->lwp_priority ^ newpriority) & ~PPQMASK) { in bsd4_resetpriority()[all …]