]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
xen: move for_each_set_bit to xen/bitops.h
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 7 May 2013 14:12:40 +0000 (15:12 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 8 May 2013 10:02:09 +0000 (11:02 +0100)
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>
xen/arch/x86/i8259.c
xen/arch/x86/mpparse.c
xen/arch/x86/setup.c
xen/arch/x86/traps.c
xen/include/asm-x86/bitops.h
xen/include/asm-x86/smp.h
xen/include/asm-x86/system.h
xen/include/xen/bitops.h
xen/include/xen/event.h
xen/include/xen/softirq.h
xen/xsm/xsm_policy.c

index b537c5f25f076e80856d6700b95d7f3d752b2bf8..6fdcce820473194d375cc88e219b0b4008d41223 100644 (file)
@@ -16,7 +16,7 @@
 #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>
index 97ab5d313880b2c95b85612fd3b1f43bf02c2453..97d34bc59d41fa1a052c2dd8e734cf9cb7bce385 100644 (file)
@@ -22,7 +22,7 @@
 #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>
index be541cb1899966ce79c78fe9fd663c7065e3d0d3..8c8b78dd7cf416a6c716e683eb0178aad71cbd0e 100644 (file)
@@ -29,7 +29,7 @@
 #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>
index 48fe4682c61f336ba1feccc26ba2cdfb3aaf9919..087bbebf5fe7fde0f23288e42e178bc11795cded 100644 (file)
@@ -52,7 +52,7 @@
 #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>
index c3cbd26ce820440c8ac371b01721ebc3910ad4ec..f5a84ef3b947c3a737e16bb6050326433c723363 100644 (file)
@@ -367,17 +367,6 @@ static inline unsigned int __scanbit(unsigned long val, unsigned long max)
   ((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
index 301f8c7a80eba15207a109ddda7a07eda342a85c..81f861005e120d27b889e0b95afc12bab812c6bd 100644 (file)
@@ -12,7 +12,7 @@
 #endif
 
 #ifndef __ASSEMBLY__
-#include <asm/bitops.h>
+#include <xen/bitops.h>
 #include <asm/mpspec.h>
 #endif
 
index b0876d6262ddf480596fb3dcb84b642f1e45f88e..6ab7d56fbd42706c05ae2cb0966bdf65de2091ac 100644 (file)
@@ -2,7 +2,7 @@
 #define __ASM_SYSTEM_H
 
 #include <xen/lib.h>
-#include <asm/bitops.h>
+#include <xen/bitops.h>
 
 #define read_segment_register(name)                             \
 ({  u16 __sel;                                                  \
index c6a78b6512c880985ddcab3df6ea0d85130bc6bd..6054155c8203b1315df6ebc663e6922568a62bd9 100644 (file)
@@ -182,4 +182,15 @@ static inline __u32 ror32(__u32 word, unsigned int shift)
 #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
index 71c3e92a1248b051b08033466d0d444aca7e3fe7..4ac39ad5eedd97734b263ea1a48fdbba47e89ef0 100644 (file)
@@ -12,7 +12,7 @@
 #include <xen/sched.h>
 #include <xen/smp.h>
 #include <xen/softirq.h>
-#include <asm/bitops.h>
+#include <xen/bitops.h>
 #include <asm/event.h>
 
 /*
index 193351deffc890a5b0431e9a40855925b075e687..0c0d4813690144bea117046b616010ada14e24a1 100644 (file)
@@ -13,7 +13,7 @@ enum {
 
 #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>
index 65be61d415a73658a70928917ecdacf0d2d234a6..cad7964d2aea6c41ffc92a72d0e8d3b3c866d1aa 100644 (file)
@@ -20,7 +20,7 @@
 
 #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;