]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ARM: 9213/1: Print message about disabled Spectre workarounds only once
authorDmitry Osipenko <dmitry.osipenko@collabora.com>
Tue, 28 Jun 2022 07:55:45 +0000 (08:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 18:59:17 +0000 (20:59 +0200)
commit cbcb9c7e3e911433c37ff9298f633bf2bb8249f8 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mm/proc-v7-bugs.c

index bcb9181601d9b99f16f8052ec106400f9015e1ba..f2c8ff0683fd7e0651e01a00aa861e014bd7fe66 100644 (file)
@@ -109,8 +109,7 @@ static unsigned int spectre_v2_install_workaround(unsigned int method)
 #else
 static unsigned int spectre_v2_install_workaround(unsigned int method)
 {
-       pr_info("CPU%u: Spectre V2: workarounds disabled by configuration\n",
-               smp_processor_id());
+       pr_info_once("Spectre V2: workarounds disabled by configuration\n");
 
        return SPECTRE_VULNERABLE;
 }