diff options
| author | Diana Craciun <diana.craciun@nxp.com> | 2018-12-12 16:03:04 +0200 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-12-20 22:59:03 +1100 |
| commit | f633a8ad636efb5d4bba1a047d4a0f1ef719aa06 (patch) | |
| tree | d175e1924324b4e4d171320e8b85b52f683f0007 /arch/powerpc/include | |
| parent | 98518c4d8728656db349f875fcbbc7c126d4c973 (diff) | |
| download | talos-obmc-linux-f633a8ad636efb5d4bba1a047d4a0f1ef719aa06.tar.gz talos-obmc-linux-f633a8ad636efb5d4bba1a047d4a0f1ef719aa06.zip | |
powerpc/fsl: Add nospectre_v2 command line argument
When the command line argument is present, the Spectre variant 2
mitigations are disabled.
Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include')
| -rw-r--r-- | arch/powerpc/include/asm/setup.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/setup.h b/arch/powerpc/include/asm/setup.h index c941c8c6bfb3..65676e2325b8 100644 --- a/arch/powerpc/include/asm/setup.h +++ b/arch/powerpc/include/asm/setup.h @@ -67,6 +67,11 @@ void do_barrier_nospec_fixups_range(bool enable, void *start, void *end); static inline void do_barrier_nospec_fixups_range(bool enable, void *start, void *end) { }; #endif +#ifdef CONFIG_PPC_FSL_BOOK3E +void setup_spectre_v2(void); +#else +static inline void setup_spectre_v2(void) {}; +#endif void do_btb_flush_fixups(void); #endif /* !__ASSEMBLY__ */ |

