use masking operation instead of test_bit for CSFLAG bits
authorJuergen Gross <jgross@suse.com>
Mon, 5 Oct 2015 15:16:38 +0000 (17:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 5 Oct 2015 15:16:38 +0000 (17:16 +0200)
commite8abdea48a3f5c880e7a18cfac7bad5be621cae5
treeffc5ecf79c2bab42b1813bfdc95d13550aebde02
parent34f10e25d4522adf9d9a064d4ab0d1f4a3ca93f2
use masking operation instead of test_bit for CSFLAG 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: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/common/sched_credit2.c