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:
Keir Fraser committed 2010-12-09 16:15:55 +00:00
1 parent add87c2b8c
commit 95e007daba
1 file changed
+1 -1
+1 -1
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.