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>
This commit is contained in:
Diana Craciun 2018-12-12 16:03:08 +02:00 committed by Michael Ellerman
parent e7aa61f47b
commit 3bc8ea8603
1 changed files with 1 additions and 0 deletions

View File

@ -974,6 +974,7 @@ void __init setup_arch(char **cmdline_p)
ppc_md.setup_arch();
setup_barrier_nospec();
setup_spectre_v2();
paging_init();