CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2019/07/08 12:53:18

Modified files:
        sys/kern       : kern_resource.c sched_bsd.c 
        sys/sys        : proc.h sched.h 

Log message:
Untangle code setting the scheduling priority of a thread.

- `p_estcpu' and `p_usrpri' represent the priority and are now only set
in a single function.

- Call resched_proc() after updating the priority and stop calling it
from schedclock() since `spc_curpriority' should match curproc's priority.

- Rename updatepri() to match decay_cpu() and stop updating per-thread
member.

- Merge two resched_proc() in one inside setrunnable().

Tweak and ok visa@

Reply via email to