cvs commit: src/sys/kern usched_bsd4.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Sep 27 11:06:35 PDT 2005
dillon 2005/09/27 11:03:32 PDT
DragonFly src repository
Modified files:
sys/kern usched_bsd4.c
Log:
Because recalculate is only called once or twice for long sleeps,
not every second forever while the process is sleeping, we have
to manually call it to resynchronize p_cpbase on wakeup or it
will wrap if the process was sleeping long enough (e.g. ~10 min
with the ACPI timer) and really mess up the nticks calculation.
The bug could very rarely result in an integer divide by 0 crash.
Reported-by: David Rhodus
Revision Changes Path
1.2 +11 -1 src/sys/kern/usched_bsd4.c
http://www.dragonflybsd.org/cvsweb/src/sys/kern/usched_bsd4.c.diff?r1=1.1&r2=1.2&f=u
More information about the Commits
mailing list