Keir Fraser
2008-Oct-21 08:58 UTC
[Xen-devel] [PATCH] Make HPET device model paranoid to counter wrap
Changing the hpet periodic timers to use vpt periodic timers means there is no real reason to have a hpet callback at all. However, the value of the comparator is now computed when it is read (which is rarely), based on the difference between the current time and the last comparator value. This works unless the current time has wrapped and passed the comparator completely at least once since it was last read. This patch reimplements the hpet callback so that the comparator is updated on every timer expiration (for a running timer). It is probably not needed but better safe than sorry. Signed-off-by: Peter Johnston <peter.johnston@citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel