aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/time.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-12-09 16:15:10 +0000
committerKeir Fraser <keir@xen.org>2010-12-09 16:15:10 +0000
commitd34920f300efb17a1cbd5dc3fefd0d949d529ba1 (patch)
tree0acbee706578caac86a9c46a1cdbc541b7c3c047 /xen/arch/x86/time.c
parent45dc0eb888d5c64f48e6a2faacfa76e41791475a (diff)
downloadxen-d34920f300efb17a1cbd5dc3fefd0d949d529ba1.tar.gz
xen-d34920f300efb17a1cbd5dc3fefd0d949d529ba1.tar.bz2
xen-d34920f300efb17a1cbd5dc3fefd0d949d529ba1.zip
x86: time: tsc_set_info() must skip the idle domain.
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/time.c')
-rw-r--r--xen/arch/x86/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c
index b28d6c0b83..d57a9cb518 100644
--- a/xen/arch/x86/time.c
+++ b/xen/arch/x86/time.c
@@ -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;