]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
x86: Simplify tsc_set_info() slightly -- no domain has id DOMID_INVALID.
authorKeir Fraser <keir@xen.org>
Thu, 9 Dec 2010 10:16:34 +0000 (10:16 +0000)
committerKeir Fraser <keir@xen.org>
Thu, 9 Dec 2010 10:16:34 +0000 (10:16 +0000)
Signed-off-by: Keir Fraser <keir@xen.org>
xen-unstable changeset:   22471:c9abf5fc5c52
xen-unstable date:        Thu Dec 09 09:57:08 2010 +0000

xen/arch/x86/time.c

index 6264a648d5e003a78f1557af74398f2196071c69..6a423c8eccf979bd8b206e9dd9f314a5c90a0c3a 100644 (file)
@@ -1792,11 +1792,12 @@ 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 || d->domain_id == DOMID_INVALID )
+    if ( d->domain_id == 0 )
     {
         d->arch.vtsc = 0;
         return;
     }
+
     switch ( d->arch.tsc_mode = tsc_mode )
     {
     case TSC_MODE_NEVER_EMULATE: