Xu, Dongxiao
2008-Jan-25 03:51 UTC
[Xen-devel][PATCH]Fix the issue of Dom0''s multiple S3 failure. Improve accuracy of time offset calculation in S3.
Fix the issue: Dom0-S3 will fail after sleep-wake for several times. -Time zone info just needs to be calculated in S3 suspend procedure. However, time_suspend() is also called on AP. That wasteful get_cmos_time() on AP may break __cpu_die() assumption since get_cmos_time() can take up to one second. This fix just limits it on BSP. Improve accuracy of the cmos_utc_offset calculation. -The get_cmos_time() function may take up to 1 second, while execution of the NOW() macro could be very fast. So when calculating cmos_utc_offset, get_cmos_time() should be firstly executed, and then (wc_sec + (wc_nsec + NOW()) / 1000000000ULL). This would make the calculation more accuracy than vice versa. Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel