mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86: time: tsc_set_info() must skip the idle domain.
Signed-off-by: Keir Fraser <keir@xen.org> xen-unstable changeset: 22473:a04430925a8b xen-unstable date: Thu Dec 09 16:15:10 2010 +0000
This commit is contained in:
1 parent
add87c2b8c
commit
95e007daba
1 file changed
+1
-1
+1
-1
@@ -1792,7 +1792,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;
|
||||
|
||||