mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
d550bbd40c
Disintegrate asm/system.h for Sparc. Signed-off-by: David Howells <dhowells@redhat.com> cc: sparclinux@vger.kernel.org
16 lines
566 B
C
16 lines
566 B
C
#ifndef __SPARC_BARRIER_H
|
|
#define __SPARC_BARRIER_H
|
|
|
|
/* XXX Change this if we ever use a PSO mode kernel. */
|
|
#define mb() __asm__ __volatile__ ("" : : : "memory")
|
|
#define rmb() mb()
|
|
#define wmb() mb()
|
|
#define read_barrier_depends() do { } while(0)
|
|
#define set_mb(__var, __value) do { __var = __value; mb(); } while(0)
|
|
#define smp_mb() __asm__ __volatile__("":::"memory")
|
|
#define smp_rmb() __asm__ __volatile__("":::"memory")
|
|
#define smp_wmb() __asm__ __volatile__("":::"memory")
|
|
#define smp_read_barrier_depends() do { } while(0)
|
|
|
|
#endif /* !(__SPARC_BARRIER_H) */
|