From: Paul E. McKenney Date: Wed, 1 Apr 2015 15:19:59 +0000 (-0700) Subject: powerpc: Fix smp_mb__before_spinlock() X-Git-Tag: v4.2-rc1~179^2^2^3~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a76ff6884bfedfafcbb0d9c84c7a6b6a546cba6d;p=platform%2Fkernel%2Flinux-exynos.git powerpc: Fix smp_mb__before_spinlock() Currently, smp_mb__before_spinlock() is defined to be smp_wmb() in core code, but this is not sufficient on PowerPC. This patch therefore supplies an override for the generic definition to strengthen smp_mb__before_spinlock() to smp_mb(), as is needed on PowerPC. Signed-off-by: Paul E. McKenney Cc: --- diff --git a/arch/powerpc/include/asm/barrier.h b/arch/powerpc/include/asm/barrier.h index a3bf5be111ff..1124f59b8df4 100644 --- a/arch/powerpc/include/asm/barrier.h +++ b/arch/powerpc/include/asm/barrier.h @@ -89,5 +89,6 @@ do { \ #define smp_mb__before_atomic() smp_mb() #define smp_mb__after_atomic() smp_mb() +#define smp_mb__before_spinlock() smp_mb() #endif /* _ASM_POWERPC_BARRIER_H */