ARM: 7197/1: errata: Remove SMP dependency for erratum 751472
authorDave Martin <dave.martin@linaro.org>
Thu, 8 Dec 2011 12:41:06 +0000 (13:41 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 23 Dec 2011 22:34:48 +0000 (22:34 +0000)
commitba90c516bae79b5f8184d915bfce7eb280af61b1
treea6f9c276ddab5bfd98a83eb264346e9db166df63
parente66dc7452af463ccd4360b1bb625c803e5327e3f
ARM: 7197/1: errata: Remove SMP dependency for erratum 751472

Activation conditions for a workaround should not be encoded in the
workaround's direct dependencies if this makes otherwise reasonable
configuration choices impossible.

This patches uses the SMP/UP patching facilities instead to compile
out the workaround if the configuration means that it is definitely
not needed.

This means that configs for buggy silicon can simply select
ARM_ERRATA_751472, without preventing a UP kernel from being built
or duplicatiing knowledge about when to activate the workaround.
This seems the correct way to do things, because the erratum is a
property of the silicon, irrespective of what the kernel config
happens to be.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/mm/proc-v7.S