diff options
author | Chad Reese <kreese@caviumnetworks.com> | 2017-09-15 13:31:28 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-10-09 08:53:56 -0400 |
commit | 34ae9c915f9d12f1ddaa19a23fb3e8984e6a1098 (patch) | |
tree | 3a1e3067b2d5cf36519915646c070163cbd9b778 | |
parent | 508c5757a72873d007e932faff5fa0014b25812d (diff) |
MIPS: Add nudges to writes for bit unlocks.
Flushing the writes lets other CPUs waiting for the lock to get it sooner.
Signed-off-by: Chad Reese <kreese@caviumnetworks.com>
Signed-off-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17289/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/include/asm/bitops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/bitops.h b/arch/mips/include/asm/bitops.h index fa57cef12a46..da1b8718861e 100644 --- a/arch/mips/include/asm/bitops.h +++ b/arch/mips/include/asm/bitops.h | |||
@@ -456,6 +456,7 @@ static inline void __clear_bit_unlock(unsigned long nr, volatile unsigned long * | |||
456 | { | 456 | { |
457 | smp_mb__before_llsc(); | 457 | smp_mb__before_llsc(); |
458 | __clear_bit(nr, addr); | 458 | __clear_bit(nr, addr); |
459 | nudge_writes(); | ||
459 | } | 460 | } |
460 | 461 | ||
461 | /* | 462 | /* |