ia64/xen-unstable

changeset 4606:75e466e245dc

bitkeeper revision 1.1348 (4266ef9bSWLiNFi-ZJ_TkK7jYaRikA)


Truly round off the div result to get right PIT frequency for guest.
Otherwise, the guest's idea of time drifts away from that of the host.

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
author iap10@tetris.cl.cam.ac.uk
date Thu Apr 21 00:11:07 2005 +0000 (2005-04-21)
parents 9e4daf2e49d2
children a1c65fd28aec
files xen/include/xen/lib.h
line diff
     1.1 --- a/xen/include/xen/lib.h	Thu Apr 21 00:05:05 2005 +0000
     1.2 +++ b/xen/include/xen/lib.h	Thu Apr 21 00:11:07 2005 +0000
     1.3 @@ -23,7 +23,7 @@
     1.4  #define SWAP(_a, _b) \
     1.5     do { typeof(_a) _t = (_a); (_a) = (_b); (_b) = _t; } while ( 0 )
     1.6  
     1.7 -#define DIV_ROUND(x, y) (((x) + (y) - 1) / (y))
     1.8 +#define DIV_ROUND(x, y) (((x) + (y) / 2) / (y))
     1.9  
    1.10  #define reserve_bootmem(_p,_l) ((void)0)
    1.11