Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7511bce4 authored by Russell King's avatar Russell King
Browse files

ARM: Fix wrong dmb



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: default avatarNicolas Pitre <nico@fluxnic.net>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent cc20b900
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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]