]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
x86: time: tsc_set_info() must skip the idle domain.
authorKeir Fraser <keir@xen.org>
Thu, 9 Dec 2010 16:15:55 +0000 (16:15 +0000)
committerKeir Fraser <keir@xen.org>
Thu, 9 Dec 2010 16:15:55 +0000 (16:15 +0000)
Signed-off-by: Keir Fraser <keir@xen.org>
xen-unstable changeset:   22473:a04430925a8b
xen-unstable date:        Thu Dec 09 16:15:10 2010 +0000

xen/arch/x86/time.c

index 6a423c8eccf979bd8b206e9dd9f314a5c90a0c3a..3814d51b592207f9075fc75ccf2e025e7d0a3fe9 100644 (file)
@@ -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;