Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/64: Make meltdown reporting Book3S 64 specific

In a subsequent patch we will enable building security.c for Book3E.
However the NXP platforms are not vulnerable to Meltdown, so make the
Meltdown vulnerability reporting PPC_BOOK3S_64 specific.

Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
[mpe: Split out of larger patch]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Diana Craciun and committed by
Michael Ellerman
406d2b6a af375eef

+2
+2
arch/powerpc/kernel/security.c
··· 92 92 device_initcall(barrier_nospec_debugfs_init); 93 93 #endif /* CONFIG_DEBUG_FS */ 94 94 95 + #ifdef CONFIG_PPC_BOOK3S_64 95 96 ssize_t cpu_show_meltdown(struct device *dev, struct device_attribute *attr, char *buf) 96 97 { 97 98 bool thread_priv; ··· 125 124 126 125 return sprintf(buf, "Vulnerable\n"); 127 126 } 127 + #endif 128 128 129 129 ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, char *buf) 130 130 {