diff options
author | David Howells <dhowells@redhat.com> | 2012-03-28 19:30:02 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-03-28 19:30:02 +0200 |
commit | 803f69144f0d48863c68f9d111b56849c7cef5bb (patch) | |
tree | 6eec3bdf7f18ea7fb2d19df22fc1879ae660ffa9 /arch/m68k/include/asm/barrier.h | |
parent | m68k: Fix xchg/cmpxchg to fail to link if given an inappropriate pointer (diff) | |
download | linux-803f69144f0d48863c68f9d111b56849c7cef5bb.tar.xz linux-803f69144f0d48863c68f9d111b56849c7cef5bb.zip |
Disintegrate asm/system.h for M68K
Disintegrate asm/system.h for M68K.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Greg Ungerer <gerg@uclinux.org>
cc: linux-m68k@lists.linux-m68k.org
Diffstat (limited to 'arch/m68k/include/asm/barrier.h')
-rw-r--r-- | arch/m68k/include/asm/barrier.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/barrier.h b/arch/m68k/include/asm/barrier.h new file mode 100644 index 000000000000..445ce22c23cb --- /dev/null +++ b/arch/m68k/include/asm/barrier.h @@ -0,0 +1,20 @@ +#ifndef _M68K_BARRIER_H +#define _M68K_BARRIER_H + +/* + * Force strict CPU ordering. + * Not really required on m68k... + */ +#define nop() do { asm volatile ("nop"); barrier(); } while (0) +#define mb() barrier() +#define rmb() barrier() +#define wmb() barrier() +#define read_barrier_depends() ((void)0) +#define set_mb(var, value) ({ (var) = (value); wmb(); }) + +#define smp_mb() barrier() +#define smp_rmb() barrier() +#define smp_wmb() barrier() +#define smp_read_barrier_depends() ((void)0) + +#endif /* _M68K_BARRIER_H */ |