aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2013-03-26 04:05:36 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-04-17 08:07:30 -0400
commit5294ee00a16567355c85b849742e5219aad880d0 (patch)
tree23d83d5b0dde5e554e7ecb5d13dc47a6f6a83bdc
parent03ff60df34892e8c471873a088b075a5b621ce0a (diff)
s390/bitops: get rid of __BITOPS_BARRIER()
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--arch/s390/include/asm/bitops.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/s390/include/asm/bitops.h b/arch/s390/include/asm/bitops.h
index 2bc357408f43..4d8604e311f3 100644
--- a/arch/s390/include/asm/bitops.h
+++ b/arch/s390/include/asm/bitops.h
@@ -98,7 +98,6 @@ extern const char _sb_findmap[];
98#endif /* CONFIG_64BIT */ 98#endif /* CONFIG_64BIT */
99 99
100#define __BITOPS_WORDS(bits) (((bits) + BITS_PER_LONG - 1) / BITS_PER_LONG) 100#define __BITOPS_WORDS(bits) (((bits) + BITS_PER_LONG - 1) / BITS_PER_LONG)
101#define __BITOPS_BARRIER() asm volatile("" : : : "memory")
102 101
103#ifdef CONFIG_SMP 102#ifdef CONFIG_SMP
104/* 103/*
@@ -164,7 +163,7 @@ test_and_set_bit_cs(unsigned long nr, volatile unsigned long *ptr)
164 mask = 1UL << (nr & (BITS_PER_LONG - 1)); 163 mask = 1UL << (nr & (BITS_PER_LONG - 1));
165 /* Do the atomic update. */ 164 /* Do the atomic update. */
166 __BITOPS_LOOP(old, new, addr, mask, __BITOPS_OR); 165 __BITOPS_LOOP(old, new, addr, mask, __BITOPS_OR);
167 __BITOPS_BARRIER(); 166 barrier();
168 return (old & mask) != 0; 167 return (old & mask) != 0;
169} 168}
170 169
@@ -183,7 +182,7 @@ test_and_clear_bit_cs(unsigned long nr, volatile unsigned long *ptr)
183 mask = ~(1UL << (nr & (BITS_PER_LONG - 1))); 182 mask = ~(1UL << (nr & (BITS_PER_LONG - 1)));
184 /* Do the atomic update. */ 183 /* Do the atomic update. */
185 __BITOPS_LOOP(old, new, addr, mask, __BITOPS_AND); 184 __BITOPS_LOOP(old, new, addr, mask, __BITOPS_AND);
186 __BITOPS_BARRIER(); 185 barrier();
187 return (old ^ new) != 0; 186 return (old ^ new) != 0;
188} 187}
189 188
@@ -202,7 +201,7 @@ test_and_change_bit_cs(unsigned long nr, volatile unsigned long *ptr)
202 mask = 1UL << (nr & (BITS_PER_LONG - 1)); 201 mask = 1UL << (nr & (BITS_PER_LONG - 1));
203 /* Do the atomic update. */ 202 /* Do the atomic update. */
204 __BITOPS_LOOP(old, new, addr, mask, __BITOPS_XOR); 203 __BITOPS_LOOP(old, new, addr, mask, __BITOPS_XOR);
205 __BITOPS_BARRIER(); 204 barrier();
206 return (old & mask) != 0; 205 return (old & mask) != 0;
207} 206}
208#endif /* CONFIG_SMP */ 207#endif /* CONFIG_SMP */