]> Pileus Git - ~andy/linux/commit
ARM: smp_on_up: move inline asm ALT_SMP patching macro out of spinlock.h
authorWill Deacon <will.deacon@arm.com>
Tue, 2 Jul 2013 11:10:42 +0000 (12:10 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 30 Sep 2013 15:42:55 +0000 (16:42 +0100)
commit27a84793e42084392181ef2ef51a954f1cf0c519
tree955a332f67b4be1d37fd195422a68ca4af806761
parente744dff72bcd4d9588af91e1feb662702222ca12
ARM: smp_on_up: move inline asm ALT_SMP patching macro out of spinlock.h

Patching UP/SMP alternatives inside inline assembly blocks is useful
outside of the spinlock implementation, where it is used for sev and wfe.

This patch lifts the macro into processor.h and gives it a scarier name
to (a) avoid conflicts in the global namespace and (b) to try and deter
its usage unless you "know what you're doing". The W macro for generating
wide instructions when targetting Thumb-2 is also made available under
the name WASM, to reduce the potential for conflicts with other headers.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/processor.h
arch/arm/include/asm/spinlock.h
arch/arm/include/asm/unified.h