ARM: Avoid building unsafe kernels on OMAP2 and MX3
commit15490ef8ff8fd22d677cb5d4f6a98e5a79118dba
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 9 Feb 2011 16:33:46 +0000 (9 16:33 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 9 Feb 2011 18:36:56 +0000 (9 18:36 +0000)
tree62919ba3d4b04787b21bf685401360156eecfd57
parent100b33c8bd8a3235fd0b7948338d6cbb3db3c63d
ARM: Avoid building unsafe kernels on OMAP2 and MX3

OMAP2 (armv6) and MX3 turn off support for the V6K instructions, which
when they include support for SMP kernels means that the resulting
kernel is unsafe on SMP and can result in corrupted filesystems as we
end up using unsafe bitops.

Re-enable the use of V6K instructions on such kernels, and let such
kernels running on V6 CPUs eat undefined instruction faults which will
be much safer than filesystem corruption.  Next merge window we can fix
this properly (as it requires a much bigger set of changes.)

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/Kconfig