projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
508c575
)
MIPS: Add nudges to writes for bit unlocks.
author
Chad Reese
<kreese@caviumnetworks.com>
Fri, 15 Sep 2017 17:31:28 +0000
(12:31 -0500)
committer
Ralf Baechle
<ralf@linux-mips.org>
Mon, 9 Oct 2017 12:53:56 +0000
(14:53 +0200)
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>
arch/mips/include/asm/bitops.h
patch
|
blob
|
history
diff --git
a/arch/mips/include/asm/bitops.h
b/arch/mips/include/asm/bitops.h
index fa57cef12a4664acb29cf8780ed864dd52d68b0d..da1b8718861e002e06e25a5d3b3fdce5f4b608b1 100644
(file)
--- 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 *
{
smp_mb__before_llsc();
__clear_bit(nr, addr);
+ nudge_writes();
}
/*