ARM: 5897/1: spinlock: don't use deprecated barriers on ARMv7
authorRabin Vincent <rabin@rab.in>
Mon, 25 Jan 2010 18:43:03 +0000 (19:43 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 15 Feb 2010 21:39:50 +0000 (21:39 +0000)
commitc5113b61baf7a9a8616eca83e20847e7fecdc679
treea7109d04a3dc00b7e6063a9a69fe5afcf3eb85d8
parent24b44a66fa240f6fc63343623ca730d39754047e
ARM: 5897/1: spinlock: don't use deprecated barriers on ARMv7

On ARMv7, the use of the cp15 operations for barriers is deprecated
in favour of the isb, dsb, and dmb instructions.  Change the locking
functions to use the appropriate type of dsb for the architecture
being built for.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/spinlock.h