]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: hw_breakpoint: make boot quieter without CPUID feature registers
authorWill Deacon <will.deacon@arm.com>
Fri, 21 Sep 2012 17:17:24 +0000 (18:17 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 15 Oct 2012 11:01:09 +0000 (12:01 +0100)
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 WARN_ONCE to keep the log
quieter.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/hw_breakpoint.c

index b6f4aecb82202b5a44a268169fbb024ab9d3410d..f267120e40710cb1ba3783f1184b337ee553c586 100644 (file)
@@ -135,11 +135,10 @@ static u8 get_debug_arch(void)
        u32 didr;
 
        /* 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");
+       if (WARN_ONCE(((read_cpuid_id() >> 16) & 0xf) != 0xf,
+               "CPUID feature registers not supported. "
+               "Assuming v6 debug is present.\n"))
                return ARM_DEBUG_ARCH_V6;
-       }
 
        ARM_DBG_READ(c0, 0, didr);
        return (didr >> 16) & 0xf;