mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
powerpc/64: Make stf barrier PPC_BOOK3S_64 specific.
commit 6453b532f2
upstream.
NXP Book3E platforms are not vulnerable to speculative store
bypass, so make the mitigations PPC_BOOK3S_64 specific.
Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
64ca6cd4ae
commit
5a56eba71a
1 changed files with 2 additions and 0 deletions
|
@ -176,6 +176,7 @@ ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, c
|
|||
return s.len;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PPC_BOOK3S_64
|
||||
/*
|
||||
* Store-forwarding barrier support.
|
||||
*/
|
||||
|
@ -323,3 +324,4 @@ static __init int stf_barrier_debugfs_init(void)
|
|||
}
|
||||
device_initcall(stf_barrier_debugfs_init);
|
||||
#endif /* CONFIG_DEBUG_FS */
|
||||
#endif /* CONFIG_PPC_BOOK3S_64 */
|
||||
|
|
Loading…
Reference in a new issue