]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: protect alternatives workarounds with Kconfig options
authorAndre Przywara <andre.przywara@arm.com>
Fri, 14 Nov 2014 15:54:12 +0000 (15:54 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 25 Nov 2014 15:56:42 +0000 (15:56 +0000)
commit2d27dcc2f730bd116bb7b222f730dd641994aff3
tree56123732185978499ae1a2f22fd1c9191d28a5d4
parentf753229303fd4230852e5df40b5f3e16dddd091e
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>
arch/arm64/Kconfig
arch/arm64/kernel/cpu_errata.c