cvs commit: src/sys/kern kern_synch.c usched_bsd4.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Jul 10 18:04:35 PDT 2006
dillon 2006/07/10 18:01:50 PDT
DragonFly src repository
Modified files:
sys/kern kern_synch.c usched_bsd4.c
Log:
Correct a problem with the user process scheduler's estimated cpu
calculation. lwp_slptime would sometimes not get reset to 0 after a
wakeup and cause a cpu-bound process to get more cpu then it deserves.
Move the estcpu call for calculations based on slptime to the tsleep code
and then unconditionally set lwp_slptime back to 0 after the process
wakes up again.
Revision Changes Path
1.64 +8 -0 src/sys/kern/kern_synch.c
1.16 +0 -21 src/sys/kern/usched_bsd4.c
http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_synch.c.diff?r1=1.63&r2=1.64&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/usched_bsd4.c.diff?r1=1.15&r2=1.16&f=u
More information about the Commits
mailing list