|
@@ -261,6 +261,11 @@ static inline void clear_bit_inv(unsigned long nr, volatile unsigned long *ptr)
|
|
|
return clear_bit(nr ^ (BITS_PER_LONG - 1), ptr);
|
|
|
}
|
|
|
|
|
|
+static inline int test_and_clear_bit_inv(unsigned long nr, volatile unsigned long *ptr)
|
|
|
+{
|
|
|
+ return test_and_clear_bit(nr ^ (BITS_PER_LONG - 1), ptr);
|
|
|
+}
|
|
|
+
|
|
|
static inline void __set_bit_inv(unsigned long nr, volatile unsigned long *ptr)
|
|
|
{
|
|
|
return __set_bit(nr ^ (BITS_PER_LONG - 1), ptr);
|