diff options
author | Michal Suchanek <msuchanek@suse.de> | 2019-04-11 14:46:01 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-17 09:36:40 +0300 |
commit | e1217b4a5acec3da22eee7088b2649bc827eb14e (patch) | |
tree | 0952503c64dde5f8f72298bb73a517a9dcfe3d03 /arch/powerpc/include/asm | |
parent | 73b0f626499c15b268f7d49d6871d49508edaa56 (diff) | |
download | linux-e1217b4a5acec3da22eee7088b2649bc827eb14e.tar.xz |
powerpc/64s: Enable barrier_nospec based on firmware settings
commit cb3d6759a93c6d0aea1c10deb6d00e111c29c19c upstream.
Check what firmware told us and enable/disable the barrier_nospec as
appropriate.
We err on the side of enabling the barrier, as it's no-op on older
systems, see the comment for more detail.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r-- | arch/powerpc/include/asm/setup.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/setup.h b/arch/powerpc/include/asm/setup.h index a225b5c42e76..84ae150ce6a6 100644 --- a/arch/powerpc/include/asm/setup.h +++ b/arch/powerpc/include/asm/setup.h @@ -51,6 +51,7 @@ enum l1d_flush_type { void setup_rfi_flush(enum l1d_flush_type, bool enable); void do_rfi_flush_fixups(enum l1d_flush_type types); +void setup_barrier_nospec(void); void do_barrier_nospec_fixups(bool enable); extern bool barrier_nospec_enabled; |