]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
x86/xen-os: Remove unused function test_and_clear_bit
authorJulien Grall <julien.grall@citrix.com>
Wed, 14 Oct 2015 15:43:31 +0000 (16:43 +0100)
committerJulien Grall <julien.grall@citrix.com>
Fri, 16 Oct 2015 16:31:43 +0000 (17:31 +0100)
sys/x86/include/xen/xen-os.h

index d586d76b49ef44e2d21e9813088bc355f581b196..a53589dd3c54df0c1a30a8ab05a6369568bb017b 100644 (file)
@@ -47,25 +47,6 @@ static inline void rep_nop(void)
 #define LOCK ""
 #define ADDR (*(volatile long *) addr)
 
-/**
- * test_and_clear_bit - Clear a bit and return its old value
- * @nr: Bit to set
- * @addr: Address to count from
- *
- * This operation is atomic and cannot be reordered.
- * It also implies a memory barrier.
- */
-static __inline int test_and_clear_bit(int nr, volatile void * addr)
-{
-        int oldbit;
-
-        __asm__ __volatile__( LOCK_PREFIX
-                "btrl %2,%1\n\tsbbl %0,%0"
-                :"=r" (oldbit),"=m" (ADDR)
-                :"Ir" (nr) : "memory");
-        return oldbit;
-}
-
 static __inline int constant_test_bit(int nr, const volatile void * addr)
 {
     return ((1UL << (nr & 31)) & (((const volatile unsigned int *) addr)[nr >> 5])) != 0;