Commit 8e80d377 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] m68knommu: remove ColdFire specific atomic functions

Remove ColdFire specific code sections for atomic_add and atomc_sub.

These are not needed, the m68k asm code for these functions is ColdFire
clean.
parent 110bf11d
......@@ -18,30 +18,6 @@ typedef struct { int counter; } atomic_t;
#define atomic_read(v) ((v)->counter)
#define atomic_set(v, i) (((v)->counter) = i)
#ifdef CONFIG_COLDFIRE
static __inline__ void atomic_add(int i, atomic_t *v)
{
__asm__ __volatile__(
"movel %1,%%d0\t\n"
"addl %%d0,%0"
:
: "m" (*v), "id" (i)
: "d0");
}
static __inline__ void atomic_sub(int i, atomic_t *v)
{
__asm__ __volatile__(
"movel %1,%%d0\t\n"
"subl %%d0,%0"
:
: "m" (*v), "id" (i)
: "d0");
}
#else
static __inline__ void atomic_add(int i, atomic_t *v)
{
__asm__ __volatile__("addl %1,%0" : "=m" (*v) : "d" (i), "0" (*v));
......@@ -52,8 +28,6 @@ static __inline__ void atomic_sub(int i, atomic_t *v)
__asm__ __volatile__("subl %1,%0" : "=m" (*v) : "d" (i), "0" (*v));
}
#endif /* COLDFIRE */
static __inline__ void atomic_inc(volatile atomic_t *v)
{
__asm__ __volatile__("addql #1,%0" : "=m" (*v): "0" (*v));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment