projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc20b90
)
ARM: Fix wrong dmb
author
Russell King
<
[email protected]
>
Tue, 12 Jan 2010 18:59:16 +0000
(18:59 +0000)
committer
Russell King
<
[email protected]
>
Tue, 12 Jan 2010 18:59:16 +0000
(18:59 +0000)
The __kuser_cmpxchg code uses an ARMv6 dmb instruction, rather than
one based upon the architecture being built for. Switch to using
the macro provided for this purpose, which also eliminates the
need for an ifdef.
Acked-by: Nicolas Pitre <
[email protected]
>
Signed-off-by: Russell King <
[email protected]
>
arch/arm/kernel/entry-armv.S
patch
|
blob
|
history
diff --git
a/arch/arm/kernel/entry-armv.S
b/arch/arm/kernel/entry-armv.S
index d2903e3bc8611b1712fe8befea100f9880451edc..6c5cf369183b414dee5e8685be889cd646d77a7e 100644
(file)
--- a/
arch/arm/kernel/entry-armv.S
+++ b/
arch/arm/kernel/entry-armv.S
@@
-957,9
+957,7
@@
kuser_cmpxchg_fixup:
#else
-#ifdef CONFIG_SMP
- mcr p15, 0, r0, c7, c10, 5 @ dmb
-#endif
+ smp_dmb
1: ldrex r3, [r2]
subs r3, r3, r0
strexeq r3, r1, [r2]