]> 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)
commit17242fa075d873899dc5d456f53ee056cd91d7c7
tree56123732185978499ae1a2f22fd1c9191d28a5d4
parent1255a9289acef19556607a699cfff989c854390f
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