Skip to content

Commit e4ced82

Browse files
digetxRussell King (Oracle)
authored andcommitted
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>
1 parent 2bf6204 commit e4ced82

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/arm/mm/proc-v7-bugs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ static unsigned int spectre_v2_install_workaround(unsigned int method)
108108
#else
109109
static unsigned int spectre_v2_install_workaround(unsigned int method)
110110
{
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");
113112

114113
return SPECTRE_VULNERABLE;
115114
}

0 commit comments

Comments
 (0)