summaryrefslogtreecommitdiff
path: root/arch/h8300/include/asm/atomic.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-03-28 21:30:02 +0400
committerDavid Howells <dhowells@redhat.com>2012-03-28 21:30:02 +0400
commita5401ee3da720d29bcce90ed352738c85a71f6cf (patch)
tree4fc07d751864b455b12272ea0bbc126140f4c446 /arch/h8300/include/asm/atomic.h
parent40ab3317493609c9a8199492588ae7bf88eb12d6 (diff)
downloadlinux-a5401ee3da720d29bcce90ed352738c85a71f6cf.tar.xz
Disintegrate asm/system.h for H8300
Disintegrate asm/system.h for H8300. Signed-off-by: David Howells <dhowells@redhat.com> cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Diffstat (limited to 'arch/h8300/include/asm/atomic.h')
-rw-r--r--arch/h8300/include/asm/atomic.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/h8300/include/asm/atomic.h b/arch/h8300/include/asm/atomic.h
index f5a38c1f5489..40901e353c21 100644
--- a/arch/h8300/include/asm/atomic.h
+++ b/arch/h8300/include/asm/atomic.h
@@ -2,6 +2,7 @@
#define __ARCH_H8300_ATOMIC__
#include <linux/types.h>
+#include <asm/cmpxchg.h>
/*
* Atomic operations that C can't guarantee us. Useful for
@@ -13,7 +14,6 @@
#define atomic_read(v) (*(volatile int *)&(v)->counter)
#define atomic_set(v, i) (((v)->counter) = i)
-#include <asm/system.h>
#include <linux/kernel.h>
static __inline__ int atomic_add_return(int i, atomic_t *v)
@@ -102,8 +102,6 @@ static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
return ret;
}
-#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
-
static inline int __atomic_add_unless(atomic_t *v, int a, int u)
{
int ret;