Timer code in WaitFor.c needs better overflow handling
@alanc
Submitted by Alan Coopersmith Assigned to Xorg Project Team
Description
Bug #3254 noted that if you set values so large for the DPMS timers that they overflow, the server goes into a tight loop constantly convinced the timers have been hit every time through WaitForSomething, checking them all, and then waiting for 0 milliseconds before doing it all again.
The immediate cause of that bug was fixed by simply preventing overflow when reading the timeout values from the config file, but the timer code also needs some long term thought to figure out if more work should be done to prevent overflows there. (Perhaps the timer values should be extended from 32-bit to 64-bit on platforms that can efficiently handle 64-bit arithmetic?)
Version: git