Skip to content

Commit 3bc8ea8

Browse files
dmcraciunmpe
authored andcommitted
powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used
If the user choses not to use the mitigations, replace the code sequence with nops. Signed-off-by: Diana Craciun <diana.craciun@nxp.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent e7aa61f commit 3bc8ea8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/kernel/setup-common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,7 @@ void __init setup_arch(char **cmdline_p)
974974
ppc_md.setup_arch();
975975

976976
setup_barrier_nospec();
977+
setup_spectre_v2();
977978

978979
paging_init();
979980

0 commit comments

Comments
 (0)