diff options
| author | Peter Zijlstra <[email protected]> | 2016-04-21 20:35:25 +0200 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2016-05-05 09:58:52 +0200 |
| commit | a1cc5bcfcfca0b99f009b117785142dbdc3b87a3 (patch) | |
| tree | 78364c2a47da4d2b1433a4e2bd95431403651309 /include/linux | |
| parent | b96bbdde19cc56f288372d25fd5ea7af04fc1271 (diff) | |
locking/atomics: Flip atomic_fetch_or() arguments
All the atomic operations have their arguments the wrong way around;
make atomic_fetch_or() consistent and flip them.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/atomic.h b/include/linux/atomic.h index 506c3531832e..e451534fe54d 100644 --- a/include/linux/atomic.h +++ b/include/linux/atomic.h @@ -560,11 +560,11 @@ static inline int atomic_dec_if_positive(atomic_t *v) /** * atomic_fetch_or - perform *p |= mask and return old value of *p - * @p: pointer to atomic_t * @mask: mask to OR on the atomic_t + * @p: pointer to atomic_t */ #ifndef atomic_fetch_or -static inline int atomic_fetch_or(atomic_t *p, int mask) +static inline int atomic_fetch_or(int mask, atomic_t *p) { int old, val = atomic_read(p); |