|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] (no subject)
ChangeSet 1.1348, 2005/04/21 01:11:07+01:00, iap10@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxx>
Signed-off-by: Arun Sharma <arun.sharma@xxxxxxxxx>
Signed-off-by: ian@xxxxxxxxxxxxx
lib.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/xen/include/xen/lib.h b/xen/include/xen/lib.h
--- a/xen/include/xen/lib.h 2005-04-20 21:03:17 -04:00
+++ b/xen/include/xen/lib.h 2005-04-20 21:03:17 -04:00
@@ -23,7 +23,7 @@
#define SWAP(_a, _b) \
do { typeof(_a) _t = (_a); (_a) = (_b); (_b) = _t; } while ( 0 )
-#define DIV_ROUND(x, y) (((x) + (y) - 1) / (y))
+#define DIV_ROUND(x, y) (((x) + (y) / 2) / (y))
#define reserve_bootmem(_p,_l) ((void)0)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
|
|
|
|