]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: protect alternatives workarounds with Kconfig options
authorAndre Przywara <andre.przywara@arm.com>
Fri, 24 Apr 2015 17:30:50 +0000 (10:30 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 27 Apr 2015 21:13:46 +0000 (17:13 -0400)
commit62ef31e125604cd61363f33eeffbb17edfbc8c97
tree9e68006d9ba9482662361b93ce8631a6b9579172
parente51ce83faf4fd6560d1279733e51154b10a3d09e
arm64: protect alternatives workarounds with Kconfig options

Not all of the errata we have workarounds for apply necessarily to all
SoCs, so people compiling a kernel for one very specific SoC may not
need to patch the kernel.
Introduce a new submenu in the "Platform selection" menu to allow
people to turn off certain bugs if they are not affected. By default
all of them are enabled.
Normal users or distribution kernels shouldn't bother to deselect any
bugs here, since the alternatives framework will take care of
patching them in only if needed.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
[will: moved kconfig menu under `Kernel Features']
Signed-off-by: Will Deacon <will.deacon@arm.com>
Cc: <stable@vger.kernel.org> # v3.18.y
(cherry picked from commit c0a01b84b1fdbd98bff5bca5b201fe73fda7e9d9)
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/arm64/Kconfig
arch/arm64/kernel/cpu_errata.c