diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-10-19 20:30:47 -0400 |
---|---|---|
committer | Adrian Bunk <bunk@kernel.org> | 2007-10-19 20:30:47 -0400 |
commit | b2fff3f1b52989dae8dfc76d0a093967c3b75d06 (patch) | |
tree | e0704d9d0143f6a9562643bb8f7702b539fbfd57 | |
parent | df7c487250b17aa0caeee7d85f120330f1d31355 (diff) |
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>
-rw-r--r-- | include/asm-blackfin/system.h | 4 | ||||
-rw-r--r-- | include/asm-h8300/system.h | 3 | ||||
-rw-r--r-- | include/asm-m68knommu/system.h | 3 | ||||
-rw-r--r-- | include/asm-sh64/system.h | 3 | ||||
-rw-r--r-- | include/asm-v850/system.h | 3 |
5 files changed, 5 insertions, 11 deletions
diff --git a/include/asm-blackfin/system.h b/include/asm-blackfin/system.h index 2b3d47d0bbb6..4a927379ee1c 100644 --- a/include/asm-blackfin/system.h +++ b/include/asm-blackfin/system.h | |||
@@ -128,9 +128,7 @@ extern unsigned long irq_flags; | |||
128 | #define mb() asm volatile ("" : : :"memory") | 128 | #define mb() asm volatile ("" : : :"memory") |
129 | #define rmb() asm volatile ("" : : :"memory") | 129 | #define rmb() asm volatile ("" : : :"memory") |
130 | #define wmb() asm volatile ("" : : :"memory") | 130 | #define wmb() asm volatile ("" : : :"memory") |
131 | #define set_rmb(var, value) do { (void) xchg(&var, value); } while (0) | 131 | #define set_mb(var, value) do { (void) xchg(&var, value); } while (0) |
132 | #define set_mb(var, value) set_rmb(var, value) | ||
133 | #define set_wmb(var, value) do { var = value; wmb(); } while (0) | ||
134 | 132 | ||
135 | #define read_barrier_depends() do { } while(0) | 133 | #define read_barrier_depends() do { } while(0) |
136 | 134 | ||
diff --git a/include/asm-h8300/system.h b/include/asm-h8300/system.h index 7807018f8500..2c1e83f7b419 100644 --- a/include/asm-h8300/system.h +++ b/include/asm-h8300/system.h | |||
@@ -82,8 +82,7 @@ asmlinkage void resume(void); | |||
82 | #define mb() asm volatile ("" : : :"memory") | 82 | #define mb() asm volatile ("" : : :"memory") |
83 | #define rmb() asm volatile ("" : : :"memory") | 83 | #define rmb() asm volatile ("" : : :"memory") |
84 | #define wmb() asm volatile ("" : : :"memory") | 84 | #define wmb() asm volatile ("" : : :"memory") |
85 | #define set_rmb(var, value) do { xchg(&var, value); } while (0) | 85 | #define set_mb(var, value) do { xchg(&var, value); } while (0) |
86 | #define set_mb(var, value) set_rmb(var, value) | ||
87 | 86 | ||
88 | #ifdef CONFIG_SMP | 87 | #ifdef CONFIG_SMP |
89 | #define smp_mb() mb() | 88 | #define smp_mb() mb() |
diff --git a/include/asm-m68knommu/system.h b/include/asm-m68knommu/system.h index 1bd1142685e1..15b4c7d45c94 100644 --- a/include/asm-m68knommu/system.h +++ b/include/asm-m68knommu/system.h | |||
@@ -104,8 +104,7 @@ asmlinkage void resume(void); | |||
104 | #define mb() asm volatile ("" : : :"memory") | 104 | #define mb() asm volatile ("" : : :"memory") |
105 | #define rmb() asm volatile ("" : : :"memory") | 105 | #define rmb() asm volatile ("" : : :"memory") |
106 | #define wmb() asm volatile ("" : : :"memory") | 106 | #define wmb() asm volatile ("" : : :"memory") |
107 | #define set_rmb(var, value) do { xchg(&var, value); } while (0) | 107 | #define set_mb(var, value) do { xchg(&var, value); } while (0) |
108 | #define set_mb(var, value) set_rmb(var, value) | ||
109 | 108 | ||
110 | #ifdef CONFIG_SMP | 109 | #ifdef CONFIG_SMP |
111 | #define smp_mb() mb() | 110 | #define smp_mb() mb() |
diff --git a/include/asm-sh64/system.h b/include/asm-sh64/system.h index 5ff94644e8c8..be2a15ffcc55 100644 --- a/include/asm-sh64/system.h +++ b/include/asm-sh64/system.h | |||
@@ -62,8 +62,7 @@ extern void __xchg_called_with_bad_pointer(void); | |||
62 | #define smp_read_barrier_depends() do { } while (0) | 62 | #define smp_read_barrier_depends() do { } while (0) |
63 | #endif /* CONFIG_SMP */ | 63 | #endif /* CONFIG_SMP */ |
64 | 64 | ||
65 | #define set_rmb(var, value) do { (void)xchg(&var, value); } while (0) | 65 | #define set_mb(var, value) do { (void)xchg(&var, value); } while (0) |
66 | #define set_mb(var, value) set_rmb(var, value) | ||
67 | 66 | ||
68 | /* Interrupt Control */ | 67 | /* Interrupt Control */ |
69 | #ifndef HARD_CLI | 68 | #ifndef HARD_CLI |
diff --git a/include/asm-v850/system.h b/include/asm-v850/system.h index 0de2481fd990..a34ddfafd561 100644 --- a/include/asm-v850/system.h +++ b/include/asm-v850/system.h | |||
@@ -66,8 +66,7 @@ static inline int irqs_disabled (void) | |||
66 | #define rmb() mb () | 66 | #define rmb() mb () |
67 | #define wmb() mb () | 67 | #define wmb() mb () |
68 | #define read_barrier_depends() ((void)0) | 68 | #define read_barrier_depends() ((void)0) |
69 | #define set_rmb(var, value) do { xchg (&var, value); } while (0) | 69 | #define set_mb(var, value) do { xchg (&var, value); } while (0) |
70 | #define set_mb(var, value) set_rmb (var, value) | ||
71 | 70 | ||
72 | #define smp_mb() mb () | 71 | #define smp_mb() mb () |
73 | #define smp_rmb() rmb () | 72 | #define smp_rmb() rmb () |