diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-06-03 04:07:35 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-06-03 04:07:35 -0400 |
commit | 71966f3a0b24b408a87a0c475262638fbb71da99 (patch) | |
tree | ce900472dd12f03fd6d0e764ea9f5a647471689d /arch/sparc | |
parent | 34e7724c0767f04f6199f2bd7232e9ab1207e1df (diff) | |
parent | 92ae18371cb1abb4e186dd9d48de2bb0d9bba626 (diff) |
Merge branch 'locking/core' into x86/core, to prepare for dependent patch
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/include/asm/barrier_64.h | 4 | ||||
-rw-r--r-- | arch/sparc/include/asm/cmpxchg_32.h | 1 | ||||
-rw-r--r-- | arch/sparc/include/asm/cmpxchg_64.h | 2 |
3 files changed, 2 insertions, 5 deletions
diff --git a/arch/sparc/include/asm/barrier_64.h b/arch/sparc/include/asm/barrier_64.h index 76648941fea7..809941e33e12 100644 --- a/arch/sparc/include/asm/barrier_64.h +++ b/arch/sparc/include/asm/barrier_64.h | |||
@@ -40,8 +40,8 @@ do { __asm__ __volatile__("ba,pt %%xcc, 1f\n\t" \ | |||
40 | #define dma_rmb() rmb() | 40 | #define dma_rmb() rmb() |
41 | #define dma_wmb() wmb() | 41 | #define dma_wmb() wmb() |
42 | 42 | ||
43 | #define set_mb(__var, __value) \ | 43 | #define smp_store_mb(__var, __value) \ |
44 | do { __var = __value; membar_safe("#StoreLoad"); } while(0) | 44 | do { WRITE_ONCE(__var, __value); membar_safe("#StoreLoad"); } while(0) |
45 | 45 | ||
46 | #ifdef CONFIG_SMP | 46 | #ifdef CONFIG_SMP |
47 | #define smp_mb() mb() | 47 | #define smp_mb() mb() |
diff --git a/arch/sparc/include/asm/cmpxchg_32.h b/arch/sparc/include/asm/cmpxchg_32.h index d38b52dca216..83ffb83c5397 100644 --- a/arch/sparc/include/asm/cmpxchg_32.h +++ b/arch/sparc/include/asm/cmpxchg_32.h | |||
@@ -34,7 +34,6 @@ static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, int | |||
34 | * | 34 | * |
35 | * Cribbed from <asm-parisc/atomic.h> | 35 | * Cribbed from <asm-parisc/atomic.h> |
36 | */ | 36 | */ |
37 | #define __HAVE_ARCH_CMPXCHG 1 | ||
38 | 37 | ||
39 | /* bug catcher for when unsupported size is used - won't link */ | 38 | /* bug catcher for when unsupported size is used - won't link */ |
40 | void __cmpxchg_called_with_bad_pointer(void); | 39 | void __cmpxchg_called_with_bad_pointer(void); |
diff --git a/arch/sparc/include/asm/cmpxchg_64.h b/arch/sparc/include/asm/cmpxchg_64.h index 0e1ed6cfbf68..faa2f61058c2 100644 --- a/arch/sparc/include/asm/cmpxchg_64.h +++ b/arch/sparc/include/asm/cmpxchg_64.h | |||
@@ -65,8 +65,6 @@ static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, | |||
65 | 65 | ||
66 | #include <asm-generic/cmpxchg-local.h> | 66 | #include <asm-generic/cmpxchg-local.h> |
67 | 67 | ||
68 | #define __HAVE_ARCH_CMPXCHG 1 | ||
69 | |||
70 | static inline unsigned long | 68 | static inline unsigned long |
71 | __cmpxchg_u32(volatile int *m, int old, int new) | 69 | __cmpxchg_u32(volatile int *m, int old, int new) |
72 | { | 70 | { |