]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7681/1: hw_breakpoint: use warn_once to avoid spam from reset_ctrl_regs()
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Wed, 20 Mar 2013 16:30:30 +0000 (17:30 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 22 Mar 2013 17:16:56 +0000 (17:16 +0000)
commite6f19783d0cc33fb3bb9a5e20ce32b012ef984f7
tree893df5c21d2ee82305457032758324fdf5f3caf1
parent51d0b369c02c051c5930f90c29d40cd89cb52eb2
ARM: 7681/1: hw_breakpoint: use warn_once to avoid spam from reset_ctrl_regs()

CPU debug features like hardware break, watchpoints can be used only
when the debug mode is enabled and available. Unfortunately on OMAP4
based devices, after a CPU power cycle, the debug feature gets disabled
which leads to a flood of messages coming from reset_ctrl_regs() which
gets called on every CPU_PM_EXIT with CPUidle enabled.

So make use of warn_once() so that system is usable.

Thanks to Will for pointers and Lokesh for the analysis of the issue.

Tested-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/hw_breakpoint.c