]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: 6655/1: Correct WFE() in asm/spinlock.h for Thumb-2
authorDave Martin <dave.martin@linaro.org>
Wed, 9 Feb 2011 11:06:59 +0000 (12:06 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 10 Feb 2011 15:30:51 +0000 (15:30 +0000)
commit917692f5f7ec63de3b093c825913d68e910db282
treed4f2a59ca417c446450df0c1a84384fcef501c7f
parent774c096bf9e49eebf7b5d2d9fdddf632c29ccea0
ARM: 6655/1: Correct WFE() in asm/spinlock.h for Thumb-2

The content for ALT_SMP() in the definition of WFE() expands to 6
bytes (IT cc ; WFEcc.W), which breaks the assumptions of the fixup
code, leading to lockups when the affected code gets run.

This patch works around the problem by explicitly using an
IT + WFEcc.N pair.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/spinlock.h