ARM: report Spectre v2 status through sysfs
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 11 Feb 2022 16:45:54 +0000 (16:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Mar 2022 11:22:32 +0000 (12:22 +0100)
commitf02cab2bed1a3493a230e54d83ff117bc59f480e
tree94cf5ac3cc23f7550303dea355acd08c52b44055
parentbf048d1921b6cdc50bfc5a1b21b6fdd2d22e1fe1
ARM: report Spectre v2 status through sysfs

commit 9dd78194a3722fa6712192cdd4f7032d45112a9a upstream.

As per other architectures, add support for reporting the Spectre
vulnerability status via sysfs CPU.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/include/asm/spectre.h [new file with mode: 0644]
arch/arm/kernel/Makefile
arch/arm/kernel/spectre.c [new file with mode: 0644]
arch/arm/mm/Kconfig
arch/arm/mm/proc-v7-bugs.c