/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_METAG_BITOPS_H #define __ASM_METAG_BITOPS_H #include <linux/compiler.h> #include <asm/barrier.h> #include <asm/global_lock.h> #ifdef CONFIG_SMP /* * These functions are the basis of our bit ops. */
static inline void set_bit(unsigned int bit, volatile unsigned long *p) { unsigned long flags; unsigned long mask = 1UL << (bit & 31); p += bit >> 5; __global_lock1(flags); fence(); *p |= mask; __global_unlock1(flags); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 57 | 100.00% | 1 | 100.00% |
Total | 57 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 58 | 100.00% | 1 | 100.00% |
Total | 58 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 57 | 100.00% | 1 | 100.00% |
Total | 57 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 88 | 100.00% | 1 | 100.00% |
Total | 88 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 86 | 100.00% | 1 | 100.00% |
Total | 86 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 77 | 100.00% | 1 | 100.00% |
Total | 77 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 492 | 99.80% | 1 | 50.00% |
Greg Kroah-Hartman | 1 | 0.20% | 1 | 50.00% |
Total | 493 | 100.00% | 2 | 100.00% |