diff options
author | Diana Craciun <diana.craciun@nxp.com> | 2018-12-12 16:03:08 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-12-20 22:59:03 +1100 |
commit | 3bc8ea8603ae4c1e09aca8de229ad38b8091fcb3 (patch) | |
tree | 9a12b7ae0cd12029d53cf8a17ebb50bcc0c1d997 /arch/powerpc/kernel/setup-common.c | |
parent | e7aa61f47b23afbec41031bc47ca8d6cb6516abc (diff) | |
download | lwn-3bc8ea8603ae4c1e09aca8de229ad38b8091fcb3.tar.gz lwn-3bc8ea8603ae4c1e09aca8de229ad38b8091fcb3.zip |
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>
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
-rw-r--r-- | arch/powerpc/kernel/setup-common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 4fe7740917a7..ca00fbb97cf8 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -974,6 +974,7 @@ void __init setup_arch(char **cmdline_p) ppc_md.setup_arch(); setup_barrier_nospec(); + setup_spectre_v2(); paging_init(); |