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

ARM: 9213/1: Print message about disabled Spectre workarounds only once

Print the message about disabled Spectre workarounds only once. The
message is printed each time CPU goes out from idling state on NVIDIA
Tegra boards, causing storm in KMSG that makes system unusable.

Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

authored by

Dmitry Osipenko and committed by
Russell King (Oracle)
e4ced82d 2bf62042

+1 -2
+1 -2
arch/arm/mm/proc-v7-bugs.c
··· 108 108 #else 109 109 static unsigned int spectre_v2_install_workaround(unsigned int method) 110 110 { 111 - pr_info("CPU%u: Spectre V2: workarounds disabled by configuration\n", 112 - smp_processor_id()); 111 + pr_info_once("Spectre V2: workarounds disabled by configuration\n"); 113 112 114 113 return SPECTRE_VULNERABLE; 115 114 }