/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_METAG_CMPXCHG_LOCK1_H #define __ASM_METAG_CMPXCHG_LOCK1_H #include <asm/global_lock.h> /* Use LOCK2 as these have to be atomic w.r.t. ordinary accesses. */
static inline unsigned long xchg_u32(volatile u32 *m, unsigned long val) { unsigned long flags, retval; __global_lock2(flags); fence(); retval = *m; *m = val; __global_unlock2(flags); return retval; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 49 | 100.00% | 1 | 100.00% |
Total | 49 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 51 | 100.00% | 1 | 100.00% |
Total | 51 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 62 | 100.00% | 1 | 100.00% |
Total | 62 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 175 | 99.43% | 1 | 50.00% |
Greg Kroah-Hartman | 1 | 0.57% | 1 | 50.00% |
Total | 176 | 100.00% | 2 | 100.00% |