use masking operation instead of test_bit for MCSF bits
authorJuergen Gross <jgross@suse.com>
Fri, 2 Oct 2015 11:44:59 +0000 (13:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 Oct 2015 11:44:59 +0000 (13:44 +0200)
commit90f2e2a307fc6a6258c39cc87b3b2bf9441c0fa7
treea6ca6cadec72ce2c1be6028afce005b38528ad2f
parent5ad97f333cf8c5045e939baf30960b52e19fcaa9
use masking operation instead of test_bit for MCSF bits

Use a bit mask for testing of a set bit instead of test_bit in case no
atomic operation is needed, as this will lead to smaller and more
effective code.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c
xen/arch/x86/x86_64/compat/mm.c
xen/common/multicall.c