x86: time: tsc_set_info() must skip the idle domain.
authorKeir Fraser <keir@xen.org>
Thu, 9 Dec 2010 16:15:10 +0000 (16:15 +0000)
committerKeir Fraser <keir@xen.org>
Thu, 9 Dec 2010 16:15:10 +0000 (16:15 +0000)
Signed-off-by: Keir Fraser <keir@xen.org>
xen/arch/x86/time.c

index b28d6c0b83ddc6528841bf4446b35e1737dbde8c..d57a9cb518d4afe5f1b35a85a8188768cbc88e0a 100644 (file)
@@ -1779,7 +1779,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;