git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
atomic_t: unify all arch definitions
[pandora-kernel.git]
/
include
/
asm-m68k
/
atomic.h
diff --git
a/include/asm-m68k/atomic.h
b/include/asm-m68k/atomic.h
index
4915294
..
eb0ab9d
100644
(file)
--- a/
include/asm-m68k/atomic.h
+++ b/
include/asm-m68k/atomic.h
@@
-1,7
+1,7
@@
#ifndef __ARCH_M68K_ATOMIC__
#define __ARCH_M68K_ATOMIC__
#ifndef __ARCH_M68K_ATOMIC__
#define __ARCH_M68K_ATOMIC__
-
+#include <linux/types.h>
#include <asm/system.h>
/*
#include <asm/system.h>
/*
@@
-13,7
+13,6
@@
* We do not have SMP m68k systems, so we don't have to deal with that.
*/
* We do not have SMP m68k systems, so we don't have to deal with that.
*/
-typedef struct { int counter; } atomic_t;
#define ATOMIC_INIT(i) { (i) }
#define atomic_read(v) ((v)->counter)
#define ATOMIC_INIT(i) { (i) }
#define atomic_read(v) ((v)->counter)