Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252677
b: refs/heads/master
c: 55c2945
h: refs/heads/master
i:
  252675: 09bf03d
v: v3
  • Loading branch information
Paul E. McKenney authored and Ingo Molnar committed May 28, 2011
1 parent 3ae4b3e commit 708db77
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 29f742f88a32c9ab8cf6d9ba69e1ea918be5aa58
refs/heads/master: 55c2945aa9d4d907ec5ca4f6a4e30ae908d8d30d
13 changes: 13 additions & 0 deletions trunk/include/linux/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,17 @@ static inline int atomic_inc_not_zero_hint(atomic_t *v, int hint)
}
#endif

#ifndef CONFIG_ARCH_HAS_ATOMIC_OR
static inline void atomic_or(int i, atomic_t *v)
{
int old;
int new;

do {
old = atomic_read(v);
new = old | i;
} while (atomic_cmpxchg(v, old, new) != old);
}
#endif /* #ifndef CONFIG_ARCH_HAS_ATOMIC_OR */

#endif /* _LINUX_ATOMIC_H */

0 comments on commit 708db77

Please sign in to comment.