]> git.karo-electronics.de Git - mv-sheeva.git/commit
ARM: hw_breakpoint: reset control registers in hotplug path
authorWill Deacon <will.deacon@arm.com>
Wed, 24 Nov 2010 17:45:49 +0000 (17:45 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 6 Dec 2010 11:55:56 +0000 (11:55 +0000)
commit7d99331e4793b52d488e911876ef11d843c6c8c9
tree0b9d7e659ed21a56c166303772043afcdf9da61a
parentac88e07122fc0eb5cbad403be97ef02c317a06b7
ARM: hw_breakpoint: reset control registers in hotplug path

The ARMv7 debug architecture doesn't make any guarantees about the
contents of debug control registers following a debug logic reset.

This patch ensures that we reset the control registers when a cpu
comes ONLINE (for example, with hotplug) so that when we enable
monitor mode while inserting a breakpoint we won't exhibit random
behaviour.

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