diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-11-08 10:31:47 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-11-08 10:31:47 +0100 |
commit | 8996e454310d4fa3f587b65ccfe57e366e68a204 (patch) | |
tree | cc54784d70d8cef67db4152d7812b116a1b1b760 /xen/arch/x86/domain.c | |
parent | 488355d213f20832ee5699e136fbf957a97d5f5f (diff) | |
download | xen-8996e454310d4fa3f587b65ccfe57e366e68a204.tar.gz xen-8996e454310d4fa3f587b65ccfe57e366e68a204.tar.bz2 xen-8996e454310d4fa3f587b65ccfe57e366e68a204.zip |
eliminate cpus_xyz()
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Diffstat (limited to 'xen/arch/x86/domain.c')
-rw-r--r-- | xen/arch/x86/domain.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 52c7f37bdc..2e029a8a01 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -1611,8 +1611,9 @@ void context_switch(struct vcpu *prev, struct vcpu *next) cpumask_copy(&dirty_mask, next->vcpu_dirty_cpumask); /* Allow at most one CPU at a time to be dirty. */ - ASSERT(cpus_weight(dirty_mask) <= 1); - if ( unlikely(!cpu_isset(cpu, dirty_mask) && !cpus_empty(dirty_mask)) ) + ASSERT(cpumask_weight(&dirty_mask) <= 1); + if ( unlikely(!cpumask_test_cpu(cpu, &dirty_mask) && + !cpumask_empty(&dirty_mask)) ) { /* Other cpus call __sync_local_execstate from flush ipi handler. */ flush_tlb_mask(&dirty_mask); |