summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2016-01-06 09:13:14 +0200
committerMichael S. Tsirkin <mst@redhat.com>2016-01-12 20:47:04 +0200
commita677f4869576eb177570ffee68598d2202de030f (patch)
treefb817d6ec7824f055e25334c39efb6219324a20e /arch/s390
parent234927540e6ac82f5f083a11c3e860e346ed09bc (diff)
downloadlinux-a677f4869576eb177570ffee68598d2202de030f.tar.gz
linux-a677f4869576eb177570ffee68598d2202de030f.tar.bz2
linux-a677f4869576eb177570ffee68598d2202de030f.zip
s390: use generic memory barriers
The s390 kernel is SMP to 99.99%, we just didn't bother with a non-smp variant for the memory-barriers. If the generic header is used we'd get the non-smp version for free. It will save a small amount of text space for CONFIG_SMP=n. Suggested-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/include/asm/barrier.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/s390/include/asm/barrier.h b/arch/s390/include/asm/barrier.h
index fbd25b299c8b..4d26fa43ec90 100644
--- a/arch/s390/include/asm/barrier.h
+++ b/arch/s390/include/asm/barrier.h
@@ -29,9 +29,6 @@
#define __smp_mb() mb()
#define __smp_rmb() rmb()
#define __smp_wmb() wmb()
-#define smp_mb() __smp_mb()
-#define smp_rmb() __smp_rmb()
-#define smp_wmb() __smp_wmb()
#define __smp_store_release(p, v) \
do { \