From: Diana Craciun Date: Wed, 12 Dec 2018 14:03:08 +0000 (+0200) Subject: powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3bc8ea8603ae4c1e09aca8de229ad38b8091fcb3;p=linux.git 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 Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 4fe7740917a76..ca00fbb97cf89 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();