From: Will Deacon Date: Fri, 21 Sep 2012 17:17:24 +0000 (+0100) Subject: ARM: hw_breakpoint: make boot quieter without CPUID feature registers X-Git-Tag: next-20121029~100^2^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2ca40c2de572e7c2c8a6b96ee20e3e120b9c81d1;p=karo-tx-linux.git 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 --- diff --git a/arch/arm/kernel/hw_breakpoint.c b/arch/arm/kernel/hw_breakpoint.c index 8cd52faeb77e..983558eb9023 100644 --- a/arch/arm/kernel/hw_breakpoint.c +++ b/arch/arm/kernel/hw_breakpoint.c @@ -136,8 +136,8 @@ static u8 get_debug_arch(void) /* Do we implement the extended CPUID interface? */ if (((read_cpuid_id() >> 16) & 0xf) != 0xf) { - pr_warning("CPUID feature registers not supported. " - "Assuming v6 debug is present.\n"); + pr_warn_once("CPUID feature registers not supported. " + "Assuming v6 debug is present.\n"); return ARM_DEBUG_ARCH_V6; }