projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf175dc
)
powerpc/64: Make stf barrier PPC_BOOK3S_64 specific.
author
Diana Craciun
<diana.craciun@nxp.com>
Fri, 27 Jul 2018 23:06:33 +0000
(09:06 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Tue, 7 Aug 2018 14:32:18 +0000
(
00:32
+1000)
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>
arch/powerpc/kernel/security.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/security.c
b/arch/powerpc/kernel/security.c
index
79f9397
..
8ee1ade
100644
(file)
--- a/
arch/powerpc/kernel/security.c
+++ b/
arch/powerpc/kernel/security.c
@@
-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 */