Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1299740

[PATCH v2 17/32] arm: define __smp_xxx

From "Michael S. Tsirkin" <mst@redhat.com>
Newsgroups linux.kernel
Subject [PATCH v2 17/32] arm: define __smp_xxx
Date 2015-12-31 20:10 +0100
Message-ID <qLQLM-8pu-25@gated-at.bofh.it> (permalink)
References <qLQLL-8pu-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This defines __smp_xxx barriers for arm,
for use by virtualization.

smp_xxx barriers are removed as they are
defined correctly by asm-generic/barriers.h

This reduces the amount of arch-specific boiler-plate code.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/arm/include/asm/barrier.h | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/arch/arm/include/asm/barrier.h b/arch/arm/include/asm/barrier.h
index 31152e8..112cc1a 100644
--- a/arch/arm/include/asm/barrier.h
+++ b/arch/arm/include/asm/barrier.h
@@ -60,15 +60,9 @@ extern void arm_heavy_mb(void);
 #define dma_wmb()	barrier()
 #endif
 
-#ifndef CONFIG_SMP
-#define smp_mb()	barrier()
-#define smp_rmb()	barrier()
-#define smp_wmb()	barrier()
-#else
-#define smp_mb()	dmb(ish)
-#define smp_rmb()	smp_mb()
-#define smp_wmb()	dmb(ishst)
-#endif
+#define __smp_mb()	dmb(ish)
+#define __smp_rmb()	__smp_mb()
+#define __smp_wmb()	dmb(ishst)
 
 #include <asm-generic/barrier.h>
 
-- 
MST

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v2 17/32] arm: define __smp_xxx "Michael S. Tsirkin" <mst@redhat.com> - 2015-12-31 20:10 +0100
  Re: [PATCH v2 17/32] arm: define __smp_xxx Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-01-02 12:30 +0100
    Re: [PATCH v2 17/32] arm: define __smp_xxx "Michael S. Tsirkin" <mst@redhat.com> - 2016-01-03 10:20 +0100
      Re: [PATCH v2 17/32] arm: define __smp_xxx Peter Zijlstra <peterz@infradead.org> - 2016-01-04 14:40 +0100
        Re: [PATCH v2 17/32] arm: define __smp_xxx Peter Zijlstra <peterz@infradead.org> - 2016-01-04 15:00 +0100
          Re: [PATCH v2 17/32] arm: define __smp_xxx Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-01-04 15:10 +0100
            Re: [PATCH v2 17/32] arm: define __smp_xxx "Michael S. Tsirkin" <mst@redhat.com> - 2016-01-05 15:40 +0100
          Re: [PATCH v2 17/32] arm: define __smp_xxx "Michael S. Tsirkin" <mst@redhat.com> - 2016-01-04 21:40 +0100
        Re: [PATCH v2 17/32] arm: define __smp_xxx "Michael S. Tsirkin" <mst@redhat.com> - 2016-01-04 21:20 +0100

csiph-web