mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.1159.1.497 (41c85fb6Idmg_bfo7zG528C4ntiZkw)
Merge scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-2.0-testing.bk into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
This commit is contained in:
commit
fee71a9b2d
1 file changed
+5
@@ -266,6 +266,9 @@ void do_gettimeofday(struct timeval *tv)
|
||||
_tv.tv_sec = xtime.tv_sec;
|
||||
_tv.tv_usec += xtime.tv_usec;
|
||||
|
||||
_tv.tv_usec +=
|
||||
(unsigned long)(shadow_system_time - processed_system_time) / 1000UL;
|
||||
|
||||
if ( unlikely(!TIME_VALUES_UP_TO_DATE) )
|
||||
{
|
||||
/*
|
||||
@@ -315,6 +318,8 @@ void do_settimeofday(struct timeval *tv)
|
||||
*/
|
||||
again:
|
||||
usec = tv->tv_usec - __get_time_delta_usecs();
|
||||
usec -=
|
||||
(unsigned long)(shadow_system_time - processed_system_time) / 1000UL;
|
||||
if ( unlikely(!TIME_VALUES_UP_TO_DATE) )
|
||||
{
|
||||
__get_time_values_from_xen();
|
||||
|
||||