WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-4.0-testing] x86: Simplify tsc_set_info() slightly

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.0-testing] x86: Simplify tsc_set_info() slightly -- no domain has id DOMID_INVALID.
From: "Xen patchbot-4.0-testing" <patchbot-4.0-testing@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Dec 2010 02:00:43 -0800
Delivery-date: Fri, 10 Dec 2010 02:01:22 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1291889794 0
# Node ID dc4b845d600aecb47e04f96da63bb237fe2719d9
# Parent  2548598d110d38355917b20abaa3422e32636001
x86: Simplify tsc_set_info() slightly -- no domain has id DOMID_INVALID.

Signed-off-by: Keir Fraser <keir@xxxxxxx>
xen-unstable changeset:   22471:c9abf5fc5c52
xen-unstable date:        Thu Dec 09 09:57:08 2010 +0000
---
 xen/arch/x86/time.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 2548598d110d -r dc4b845d600a xen/arch/x86/time.c
--- a/xen/arch/x86/time.c       Thu Dec 09 10:16:03 2010 +0000
+++ b/xen/arch/x86/time.c       Thu Dec 09 10:16:34 2010 +0000
@@ -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:

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.0-testing] x86: Simplify tsc_set_info() slightly -- no domain has id DOMID_INVALID., Xen patchbot-4.0-testing <=