aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/Kconfig
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2018-01-07 22:48:00 +0100
committerThomas Gleixner <tglx@linutronix.de>2018-01-08 11:10:33 +0100
commit87590ce6e373d1a5401f6539f0c59ef92dd924a9 (patch)
treeb3d5c8ca8fe62571842c3461956da2183957a61c /drivers/base/Kconfig
parentx86/cpufeatures: Add X86_BUG_SPECTRE_V[12] (diff)
downloadlinux-dev-87590ce6e373d1a5401f6539f0c59ef92dd924a9.tar.xz
linux-dev-87590ce6e373d1a5401f6539f0c59ef92dd924a9.zip
sysfs/cpu: Add vulnerability folder
As the meltdown/spectre problem affects several CPU architectures, it makes sense to have common way to express whether a system is affected by a particular vulnerability or not. If affected the way to express the mitigation should be common as well. Create /sys/devices/system/cpu/vulnerabilities folder and files for meltdown, spectre_v1 and spectre_v2. Allow architectures to override the show function. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Will Deacon <will.deacon@arm.com> Cc: Dave Hansen <dave.hansen@intel.com> Cc: Linus Torvalds <torvalds@linuxfoundation.org> Cc: Borislav Petkov <bp@alien8.de> Cc: David Woodhouse <dwmw@amazon.co.uk> Link: https://lkml.kernel.org/r/20180107214913.096657732@linutronix.de
Diffstat (limited to 'drivers/base/Kconfig')
-rw-r--r--drivers/base/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig
index 2f6614c9a229..37a71fd9043f 100644
--- a/drivers/base/Kconfig
+++ b/drivers/base/Kconfig
@@ -235,6 +235,9 @@ config GENERIC_CPU_DEVICES
config GENERIC_CPU_AUTOPROBE
bool
+config GENERIC_CPU_VULNERABILITIES
+ bool
+
config SOC_BUS
bool
select GLOB