|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] x86: Simplify tsc_set_info() slightly --
# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1291888628 0
# Node ID c9abf5fc5c528d6f40a767fd52114efbd94eaa22
# Parent 0c97247c64d61511acff37d1903cb304b387f397
x86: Simplify tsc_set_info() slightly -- no domain has id DOMID_INVALID.
Signed-off-by: Keir Fraser <keir@xxxxxxx>
---
xen/arch/x86/time.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -r 0c97247c64d6 -r c9abf5fc5c52 xen/arch/x86/time.c
--- a/xen/arch/x86/time.c Thu Dec 09 08:34:59 2010 +0000
+++ b/xen/arch/x86/time.c Thu Dec 09 09:57:08 2010 +0000
@@ -1779,11 +1779,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-unstable] x86: Simplify tsc_set_info() slightly -- no domain has id DOMID_INVALID.,
Xen patchbot-unstable <=
|
|
|
|
|