include/asm-*/system.h: remove unused set_rmb(), set_wmb() macros
These don't appear anywhere else in the kernel anymore. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Acked-by: Paul Mundt <lethal@linux-sh.org> Acked-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Adrian Bunk <bunk@kernel.org>
This commit is contained in:
parent
df7c487250
commit
b2fff3f1b5
|
@ -128,9 +128,7 @@ extern unsigned long irq_flags;
|
||||||
#define mb() asm volatile ("" : : :"memory")
|
#define mb() asm volatile ("" : : :"memory")
|
||||||
#define rmb() asm volatile ("" : : :"memory")
|
#define rmb() asm volatile ("" : : :"memory")
|
||||||
#define wmb() asm volatile ("" : : :"memory")
|
#define wmb() asm volatile ("" : : :"memory")
|
||||||
#define set_rmb(var, value) do { (void) xchg(&var, value); } while (0)
|
#define set_mb(var, value) do { (void) xchg(&var, value); } while (0)
|
||||||
#define set_mb(var, value) set_rmb(var, value)
|
|
||||||
#define set_wmb(var, value) do { var = value; wmb(); } while (0)
|
|
||||||
|
|
||||||
#define read_barrier_depends() do { } while(0)
|
#define read_barrier_depends() do { } while(0)
|
||||||
|
|
||||||
|
|
|
@ -82,8 +82,7 @@ asmlinkage void resume(void);
|
||||||
#define mb() asm volatile ("" : : :"memory")
|
#define mb() asm volatile ("" : : :"memory")
|
||||||
#define rmb() asm volatile ("" : : :"memory")
|
#define rmb() asm volatile ("" : : :"memory")
|
||||||
#define wmb() asm volatile ("" : : :"memory")
|
#define wmb() asm volatile ("" : : :"memory")
|
||||||
#define set_rmb(var, value) do { xchg(&var, value); } while (0)
|
#define set_mb(var, value) do { xchg(&var, value); } while (0)
|
||||||
#define set_mb(var, value) set_rmb(var, value)
|
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
#define smp_mb() mb()
|
#define smp_mb() mb()
|
||||||
|
|
|
@ -104,8 +104,7 @@ asmlinkage void resume(void);
|
||||||
#define mb() asm volatile ("" : : :"memory")
|
#define mb() asm volatile ("" : : :"memory")
|
||||||
#define rmb() asm volatile ("" : : :"memory")
|
#define rmb() asm volatile ("" : : :"memory")
|
||||||
#define wmb() asm volatile ("" : : :"memory")
|
#define wmb() asm volatile ("" : : :"memory")
|
||||||
#define set_rmb(var, value) do { xchg(&var, value); } while (0)
|
#define set_mb(var, value) do { xchg(&var, value); } while (0)
|
||||||
#define set_mb(var, value) set_rmb(var, value)
|
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
#define smp_mb() mb()
|
#define smp_mb() mb()
|
||||||
|
|
|
@ -62,8 +62,7 @@ extern void __xchg_called_with_bad_pointer(void);
|
||||||
#define smp_read_barrier_depends() do { } while (0)
|
#define smp_read_barrier_depends() do { } while (0)
|
||||||
#endif /* CONFIG_SMP */
|
#endif /* CONFIG_SMP */
|
||||||
|
|
||||||
#define set_rmb(var, value) do { (void)xchg(&var, value); } while (0)
|
#define set_mb(var, value) do { (void)xchg(&var, value); } while (0)
|
||||||
#define set_mb(var, value) set_rmb(var, value)
|
|
||||||
|
|
||||||
/* Interrupt Control */
|
/* Interrupt Control */
|
||||||
#ifndef HARD_CLI
|
#ifndef HARD_CLI
|
||||||
|
|
|
@ -66,8 +66,7 @@ static inline int irqs_disabled (void)
|
||||||
#define rmb() mb ()
|
#define rmb() mb ()
|
||||||
#define wmb() mb ()
|
#define wmb() mb ()
|
||||||
#define read_barrier_depends() ((void)0)
|
#define read_barrier_depends() ((void)0)
|
||||||
#define set_rmb(var, value) do { xchg (&var, value); } while (0)
|
#define set_mb(var, value) do { xchg (&var, value); } while (0)
|
||||||
#define set_mb(var, value) set_rmb (var, value)
|
|
||||||
|
|
||||||
#define smp_mb() mb ()
|
#define smp_mb() mb ()
|
||||||
#define smp_rmb() rmb ()
|
#define smp_rmb() rmb ()
|
||||||
|
|
Loading…
Reference in New Issue