projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61a3316
)
[MIPS] SMTC: Microoptimize atomic_postincrement for non-weak consistency.
author
Ralf Baechle
<ralf@linux-mips.org>
Thu, 11 Oct 2007 22:45:58 +0000
(23:45 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Thu, 11 Oct 2007 22:45:58 +0000
(23:45 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/smtc.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/kernel/smtc.c
b/arch/mips/kernel/smtc.c
index fe22387d58b1223d980d61933029b349e523285b..137183bba54f38bc1a12e8e56bdc0348c30ebd74 100644
(file)
--- a/
arch/mips/kernel/smtc.c
+++ b/
arch/mips/kernel/smtc.c
@@
-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");