Skip to content

Rearrange MIPS barriers and optimize for Octeon.

David Daney linux-mips 1 version Applied

Status from this message: Queued for 2.6.34. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2MIPS: New macro smp_mb__before_llsc.arch/mips/include/asm/atomic.h arch/mips/include/asm/barrier.h arch/mips/include/asm/bitops.h +3 more+32 -251 reply
2/2MIPS: Octeon: Use optimized memory barrier primitives.arch/mips/Kconfig arch/mips/include/asm/barrier.h+31 -131 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Rearrange MIPS barriers and optimize for Octeon.

Locking/atomic performance on Octeon can be improved by using optimized barrier instructions. The first patch in this set rearranges and simplifies (at least in my mind) the existing barriers. Then the second patch adds Octeon specific barriers.

I will reply with the two patches.

David Daney (2):
MIPS: New macro smp_mb__before_llsc.
MIPS: Octeon: Use optimized memory barrier primitives.

 arch/mips/Kconfig                |    1 -
 arch/mips/include/asm/atomic.h   |   16 ++++++------
 arch/mips/include/asm/barrier.h  |   52 
+++++++++++++++++++++++++++-----------
 arch/mips/include/asm/bitops.h   |    8 +++---
 arch/mips/include/asm/cmpxchg.h  |   10 +++---
 arch/mips/include/asm/spinlock.h |    4 +-
 arch/mips/include/asm/system.h   |    4 +++
 7 files changed, 60 insertions(+), 35 deletions(-)