summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/setup.h
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2018-04-24 06:15:57 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2018-06-03 12:43:45 +0200
commitcb3d6759a93c6d0aea1c10deb6d00e111c29c19c (patch)
tree7437d3e50f9ce967c0da85868121dee80f5afa3f /arch/powerpc/include/asm/setup.h
parentpowerpc/64s: Patch barrier_nospec in modules (diff)
downloadlinux-cb3d6759a93c6d0aea1c10deb6d00e111c29c19c.tar.xz
linux-cb3d6759a93c6d0aea1c10deb6d00e111c29c19c.zip
powerpc/64s: Enable barrier_nospec based on firmware settings
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>
Diffstat (limited to 'arch/powerpc/include/asm/setup.h')
-rw-r--r--arch/powerpc/include/asm/setup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/setup.h b/arch/powerpc/include/asm/setup.h
index a24c3c9053cc..8721fd004291 100644
--- a/arch/powerpc/include/asm/setup.h
+++ b/arch/powerpc/include/asm/setup.h
@@ -52,6 +52,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;