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

ARM: hw_breakpoint: make boot quieter without CPUID feature registers

Booting on a v6 core without the CPUID feature registers (e.g. 1136)
leads to a noisy dmesg complaining about their absence.

This patch changes the pr_warning into a pr_warn_once to keep the log
quieter.

Signed-off-by: Will Deacon <will.deacon@arm.com>

+2 -2
+2 -2
arch/arm/kernel/hw_breakpoint.c
··· 136 136 137 137 /* Do we implement the extended CPUID interface? */ 138 138 if (((read_cpuid_id() >> 16) & 0xf) != 0xf) { 139 - pr_warning("CPUID feature registers not supported. " 140 - "Assuming v6 debug is present.\n"); 139 + pr_warn_once("CPUID feature registers not supported. " 140 + "Assuming v6 debug is present.\n"); 141 141 return ARM_DEBUG_ARCH_V6; 142 142 } 143 143