Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24826
b: refs/heads/master
c: 2746ae1
h: refs/heads/master
v: v3
  • Loading branch information
Kyle McMartin authored and Kyle McMartin committed Mar 30, 2006
1 parent 8d37606 commit 8206dc8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6f0b45152d458f86f11e8a601735af1c352e6f6c
refs/heads/master: 2746ae14fe55f9483ae94ef89d4495d0eb8ee03d
16 changes: 8 additions & 8 deletions trunk/include/asm-parisc/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
#include <linux/percpu.h>
#include <asm/atomic.h>

typedef atomic_t local_t;
typedef atomic_long_t local_t;

#define LOCAL_INIT(i) ATOMIC_INIT(i)
#define local_read(v) atomic_read(v)
#define local_set(v,i) atomic_set(v,i)
#define LOCAL_INIT(i) ATOMIC_LONG_INIT(i)
#define local_read(v) atomic_long_read(v)
#define local_set(v,i) atomic_long_set(v,i)

#define local_inc(v) atomic_inc(v)
#define local_dec(v) atomic_dec(v)
#define local_add(i, v) atomic_add(i, v)
#define local_sub(i, v) atomic_sub(i, v)
#define local_inc(v) atomic_long_inc(v)
#define local_dec(v) atomic_long_dec(v)
#define local_add(i, v) atomic_long_add(i, v)
#define local_sub(i, v) atomic_long_sub(i, v)

#define __local_inc(v) ((v)->counter++)
#define __local_dec(v) ((v)->counter--)
Expand Down

0 comments on commit 8206dc8

Please sign in to comment.