Fixed corner case with alarm rel_time
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 5 May 2011 01:26:43 +0000 (18:26 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:02 +0000 (17:36 -0700)
commit8e2a74372f58c8645e2ccb3077f3602b2ccb7779
tree3fda5e920b9640e7747d791d59a854db2fe45715
parent5a51f3c731e209aafa5a7058b40ea396103d5978
Fixed corner case with alarm rel_time

With rounding errors when time > now, you could get rel_time == 0, which
shuts off the alarm.

For those curious, the time on hardware to set a 1 usec alarm, sleep on
it, and wake back up is around 3.1 usec, depending on cache hotness.
kern/arch/i686/apic.c
kern/src/alarm.c