Move for_each_set_bit from asm-x86/bitops.h to xen/bitops.h.
Replace #include <asm/bitops.h> with #include <xen/bitops.h> everywhere.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/desc.h>
-#include <asm/bitops.h>
+#include <xen/bitops.h>
#include <xen/delay.h>
#include <asm/apic.h>
#include <asm/asm_defns.h>
#include <xen/efi.h>
#include <xen/sched.h>
-#include <asm/bitops.h>
+#include <xen/bitops.h>
#include <asm/smp.h>
#include <asm/acpi.h>
#include <asm/mtrr.h>
#include <public/version.h>
#include <compat/platform.h>
#include <compat/xen.h>
-#include <asm/bitops.h>
+#include <xen/bitops.h>
#include <asm/smp.h>
#include <asm/processor.h>
#include <asm/mpspec.h>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/atomic.h>
-#include <asm/bitops.h>
+#include <xen/bitops.h>
#include <asm/desc.h>
#include <asm/debugreg.h>
#include <asm/smp.h>
((off)+(__scanbit(~(((*(const unsigned long *)addr)) >> (off)), size))) : \
__find_next_zero_bit(addr,size,off)))
-/**
- * for_each_set_bit - iterate over every set bit in a memory region
- * @bit: The integer iterator
- * @addr: The address to base the search on
- * @size: The maximum size to search
- */
-#define for_each_set_bit(bit, addr, size) \
- for ( (bit) = find_first_bit(addr, size); \
- (bit) < (size); \
- (bit) = find_next_bit(addr, size, (bit) + 1) )
-
/**
* find_first_set_bit - find the first set bit in @word
* @word: the word to search
#endif
#ifndef __ASSEMBLY__
-#include <asm/bitops.h>
+#include <xen/bitops.h>
#include <asm/mpspec.h>
#endif
#define __ASM_SYSTEM_H
#include <xen/lib.h>
-#include <asm/bitops.h>
+#include <xen/bitops.h>
#define read_segment_register(name) \
({ u16 __sel; \
#define __L16(_x) (((_x) & 0x0000ff00) ? ( 8 + __L8( (_x)>> 8)) : __L8( _x))
#define LOG_2(_x) (((_x) & 0xffff0000) ? (16 + __L16((_x)>>16)) : __L16(_x))
+/**
+ * for_each_set_bit - iterate over every set bit in a memory region
+ * @bit: The integer iterator
+ * @addr: The address to base the search on
+ * @size: The maximum size to search
+ */
+#define for_each_set_bit(bit, addr, size) \
+ for ( (bit) = find_first_bit(addr, size); \
+ (bit) < (size); \
+ (bit) = find_next_bit(addr, size, (bit) + 1) )
+
#endif
#include <xen/sched.h>
#include <xen/smp.h>
#include <xen/softirq.h>
-#include <asm/bitops.h>
+#include <xen/bitops.h>
#include <asm/event.h>
/*
#include <xen/lib.h>
#include <xen/smp.h>
-#include <asm/bitops.h>
+#include <xen/bitops.h>
#include <asm/current.h>
#include <asm/hardirq.h>
#include <asm/softirq.h>
#include <xsm/xsm.h>
#include <xen/multiboot.h>
-#include <asm/bitops.h>
+#include <xen/bitops.h>
char *__initdata policy_buffer = NULL;
u32 __initdata policy_size = 0;