[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-4.0-testing] x86: time: tsc_set_info() must skip the idle domain.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1291911355 0
# Node ID 116a979f9d0f29275a599e16c88ab68dd5d53f64
# Parent  1501a7887a3b9c2738d13af0f2067387f6783a3d
x86: time: tsc_set_info() must skip the idle domain.

Signed-off-by: Keir Fraser <keir@xxxxxxx>
xen-unstable changeset:   22473:a04430925a8b
xen-unstable date:        Thu Dec 09 16:15:10 2010 +0000
---
 xen/arch/x86/time.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 1501a7887a3b -r 116a979f9d0f xen/arch/x86/time.c
--- a/xen/arch/x86/time.c       Thu Dec 09 10:19:01 2010 +0000
+++ b/xen/arch/x86/time.c       Thu Dec 09 16:15:55 2010 +0000
@@ -1792,7 +1792,7 @@ void tsc_set_info(struct domain *d,
                   uint32_t tsc_mode, uint64_t elapsed_nsec,
                   uint32_t gtsc_khz, uint32_t incarnation)
 {
-    if ( d->domain_id == 0 )
+    if ( is_idle_domain(d) || (d->domain_id == 0) )
     {
         d->arch.vtsc = 0;
         return;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.