ARM: SWP emulation: only initialise on ARMv7 CPUs
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 4 Jul 2014 13:49:05 +0000 (14:49 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 18 Jul 2014 11:29:49 +0000 (12:29 +0100)
commit7397aa48fff47c2386867a3fbfce8f3e664843a9
treeedbbcea793a361542cb1be9ec2b15bb15b87862c
parenta11dd731f5ead63ab3d757bbb1ab631063f6c034
ARM: SWP emulation: only initialise on ARMv7 CPUs

Previous CPUs do not have the ability to trap SWP instructions, so
it's pointless initialising this code there.

Tested-by: Tony Lindgren <tony@atomide.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/swp_emulate.c