Skip to content

Commit

Permalink
powerpc: Fix smp_mb__before_spinlock()
Browse files Browse the repository at this point in the history
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 <paulmck@linux.vnet.ibm.com>
Cc: <linuxppc-dev@lists.ozlabs.org>
  • Loading branch information
Paul E. McKenney committed May 27, 2015
1 parent 5ce035f commit a76ff68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/include/asm/barrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit a76ff68

Please sign in to comment.