|
@@ -507,17 +507,6 @@ do { \
|
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-/* This is not atomic against other CPUs -- CPU preemption needs to be off */
|
|
|
|
-#define x86_test_and_clear_bit_percpu(bit, var) \
|
|
|
|
-({ \
|
|
|
|
- bool old__; \
|
|
|
|
- asm volatile("btr %2,"__percpu_arg(1)"\n\t" \
|
|
|
|
- CC_SET(c) \
|
|
|
|
- : CC_OUT(c) (old__), "+m" (var) \
|
|
|
|
- : "dIr" (bit)); \
|
|
|
|
- old__; \
|
|
|
|
-})
|
|
|
|
-
|
|
|
|
static __always_inline bool x86_this_cpu_constant_test_bit(unsigned int nr,
|
|
static __always_inline bool x86_this_cpu_constant_test_bit(unsigned int nr,
|
|
const unsigned long __percpu *addr)
|
|
const unsigned long __percpu *addr)
|
|
{
|
|
{
|