The nticks calculation is still broken. Sometimes the delta systimer
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 23 Apr 2006 17:48:59 +0000 (17:48 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 23 Apr 2006 17:48:59 +0000 (17:48 +0000)
commit4f97039df1cc8a68a4a5deea8c99601918094fba
treeb234d8e0806450bc540af3cda480ec45cef3bf90
parent8f1a379e664f401694949cc38cd69cd30dc9913c
The nticks calculation is still broken.  Sometimes the delta systimer
value is less then the periodic value.  This has been tracked down to
a 32 bit overflow, but 32 bit overflows are SOP for systimers.  The
actual bug is related to lwp_slptime.  lwp_slptime is supposed to detect
that an overflow might have occured but apparently it can wind up 0 in
certain cases which have yet to be tracked down.

For now just sanitize nticks.

Reported-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
sys/kern/usched_bsd4.c