]> Git Repo - linux.git/commit
s390: add options to change branch prediction behaviour for the kernel
authorMartin Schwidefsky <[email protected]>
Tue, 16 Jan 2018 06:11:45 +0000 (07:11 +0100)
committerMartin Schwidefsky <[email protected]>
Mon, 5 Feb 2018 12:49:17 +0000 (13:49 +0100)
commitd768bd892fc8f066cd3aa000eb1867bcf32db0ee
tree73856bebc552b175d71bef6859824d7ca8d8e051
parentcf1489984641369611556bf00c48f945c77bcf02
s390: add options to change branch prediction behaviour for the kernel

Add the PPA instruction to the system entry and exit path to switch
the kernel to a different branch prediction behaviour. The instructions
are added via CPU alternatives and can be disabled with the "nospec"
or the "nobp=0" kernel parameter. If the default behaviour selected
with CONFIG_KERNEL_NOBP is set to "n" then the "nobp=1" parameter can be
used to enable the changed kernel branch prediction.

Acked-by: Cornelia Huck <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
arch/s390/Kconfig
arch/s390/include/asm/processor.h
arch/s390/kernel/alternative.c
arch/s390/kernel/early.c
arch/s390/kernel/entry.S
arch/s390/kernel/ipl.c
arch/s390/kernel/smp.c
This page took 0.060017 seconds and 4 git commands to generate.