We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a66728 commit 12010aaCopy full SHA for 12010aa
arch/s390/include/asm/bitops.h
@@ -201,6 +201,16 @@ static inline void arch___clear_bit_unlock(unsigned long nr,
201
arch___clear_bit(nr, ptr);
202
}
203
204
+static inline bool arch_xor_unlock_is_negative_byte(unsigned long mask,
205
+ volatile unsigned long *ptr)
206
+{
207
+ unsigned long old;
208
+
209
+ old = __atomic64_xor_barrier(mask, (long *)ptr);
210
+ return old & BIT(7);
211
+}
212
+#define arch_xor_unlock_is_negative_byte arch_xor_unlock_is_negative_byte
213
214
#include <asm-generic/bitops/instrumented-atomic.h>
215
#include <asm-generic/bitops/instrumented-non-atomic.h>
216
#include <asm-generic/bitops/instrumented-lock.h>
0 commit comments