Skip to content

Commit

Permalink
MIPS: Add nudges to writes for bit unlocks.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chad Reese authored and Ralf Baechle committed Oct 9, 2017
1 parent 508c575 commit 34ae9c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/mips/include/asm/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/*
Expand Down

0 comments on commit 34ae9c9

Please sign in to comment.