/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_SCORE_CMPXCHG_H #define _ASM_SCORE_CMPXCHG_H #include <linux/irqflags.h> struct __xchg_dummy { unsigned long a[100]; }; #define __xg(x) ((struct __xchg_dummy *)(x))
static inline unsigned long __xchg(volatile unsigned long *m, unsigned long val) { unsigned long retval; unsigned long flags; local_irq_save(flags); retval = *m; *m = val; local_irq_restore(flags); return retval; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 49 | 100.00% | 1 | 100.00% |
Total | 49 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 59 | 100.00% | 1 | 100.00% |
Total | 59 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 164 | 99.39% | 1 | 50.00% |
Greg Kroah-Hartman | 1 | 0.61% | 1 | 50.00% |
Total | 165 | 100.00% | 2 | 100.00% |