[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.0-testing] x86: Simplify tsc_set_info() slightly -- no domain has id DOMID_INVALID.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |