arm64: kernel: refactor code to install/uninstall breakpoints
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 13 Aug 2013 09:45:19 +0000 (10:45 +0100)
committerAlex Shi <alex.shi@linaro.org>
Mon, 10 Mar 2014 05:38:36 +0000 (13:38 +0800)
commit96666585a0f57734fb19b4f51851fabcb79ff67f
tree2d0f25eff58b9eb540b5a1ef013711fdb55bdf7f
parent582ae86b286ac72bce852737882a0bfd20f3b864
arm64: kernel: refactor code to install/uninstall breakpoints

Most of the code executed to install and uninstall breakpoints is
common and can be factored out in a function that through a runtime
operations type provides the requested implementation.

This patch creates a common function that can be used to install/uninstall
breakpoints and defines the set of operations that can be carried out
through it.

Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Conflicts:
arch/arm64/kernel/hw_breakpoint.c
arch/arm64/kernel/hw_breakpoint.c