CVSROOT: /cvs Module name: src Changes by: [email protected] 2025/06/12 02:33:58
Modified files:
sys/sys : proc.h
sys/kern : sched_bsd.c
Log message:
p_pctcpu is only modified in schedcpu() timeout.
Make the calculation there more atomic by using volatile on the p_pctcpu
member and a read-update-write logic in schedcpu().
With this p_pctcpu can be marked [a] in struct proc instead of depending
on the SCHED_LOCK (which was actually not true).
OK mpi@
