cvs commit: src/sys/kern kern_synch.c usched_bsd4.c

Matthew Dillon dillon at
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 
  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

More information about the Commits mailing list