Skip to content

Commit

Permalink
[MIPS] SMTC: Microoptimize atomic_postincrement for non-weak consiste…
Browse files Browse the repository at this point in the history
…ncy.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 11, 2007
1 parent 61a3316 commit d87d0c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/smtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ static __inline__ int atomic_postincrement(unsigned int *pv)
" addu %1, %0, 1 \n"
" sc %1, %2 \n"
" beqz %1, 1b \n"
" sync \n"
__WEAK_LLSC_MB
: "=&r" (result), "=&r" (temp), "=m" (*pv)
: "m" (*pv)
: "memory");
Expand Down

0 comments on commit d87d0c9

Please sign in to comment.