From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 5/8] ARM: hw_breakpoint: make boot quieter without CPUID feature registers
Date: Fri, 26 Oct 2012 11:30:12 +0100 [thread overview]
Message-ID: <1351247415-25090-5-git-send-email-will.deacon@arm.com> (raw)
In-Reply-To: <1351247415-25090-1-git-send-email-will.deacon@arm.com>
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>
---
arch/arm/kernel/hw_breakpoint.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/kernel/hw_breakpoint.c b/arch/arm/kernel/hw_breakpoint.c
index 8cd52fa..983558e 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;
}
--
1.7.4.1
next prev parent reply other threads:[~2012-10-26 10:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-26 10:30 [PATCH v2 1/8] ARM: hw_breakpoint: only clear OS lock when implemented on v7 Will Deacon
2012-10-26 10:30 ` [PATCH v2 2/8] ARM: hw_breakpoint: fix monitor mode detection with v7.1 Will Deacon
2012-10-26 10:30 ` [PATCH v2 3/8] ARM: hw_breakpoint: fix ordering of debug register reset sequence Will Deacon
2012-10-26 10:30 ` [PATCH v2 4/8] ARM: hw_breakpoint: don't try to clear v6 debug registers during boot Will Deacon
2012-10-26 10:30 ` Will Deacon [this message]
2012-10-26 10:30 ` [PATCH v2 6/8] ARM: hw_breakpoint: check if monitor mode is enabled during validation Will Deacon
2012-10-26 10:30 ` [PATCH v2 7/8] ARM: hw_breakpoint: use CRn as argument for debug reg accessor macros Will Deacon
2012-10-26 10:30 ` [PATCH v2 8/8] ARM: hw_breakpoint: kill WARN_ONCE usage Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1351247415-25090-5-git-send-email-will.deacon@arm.com \
--to=will.deacon@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox