Commit 1ec00d22 authored by Diana Craciun's avatar Diana Craciun Committed by Greg Kroah-Hartman

powerpc/64: Make stf barrier PPC_BOOK3S_64 specific.

commit 6453b532 upstream.

NXP Book3E platforms are not vulnerable to speculative store
bypass, so make the mitigations PPC_BOOK3S_64 specific.
Signed-off-by: default avatarDiana Craciun <diana.craciun@nxp.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 78749d1a
...@@ -177,6 +177,7 @@ ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, c ...@@ -177,6 +177,7 @@ ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, c
return s.len; return s.len;
} }
#ifdef CONFIG_PPC_BOOK3S_64
/* /*
* Store-forwarding barrier support. * Store-forwarding barrier support.
*/ */
...@@ -324,3 +325,4 @@ static __init int stf_barrier_debugfs_init(void) ...@@ -324,3 +325,4 @@ static __init int stf_barrier_debugfs_init(void)
} }
device_initcall(stf_barrier_debugfs_init); device_initcall(stf_barrier_debugfs_init);
#endif /* CONFIG_DEBUG_FS */ #endif /* CONFIG_DEBUG_FS */
#endif /* CONFIG_PPC_BOOK3S_64 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment