CVSROOT:        /cvs
Module name:    src
Changes by:     clau...@cvs.openbsd.org 2025/08/01 04:53:23

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

Log message:
Instead of resetting p_cpticks in schedcpu() for all procs make
p_cpticks a constantly increasing counter. schedcpu() then uses
p_cpticks2 to store the last value. So the count of tick then
becomes p_cpticks - p_cpticks2 and with both value are only
updated by a single point. This makes the calculation of p_cpu
fully MP safe.
OK mpi@

Reply via email to