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)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 16 Dec 2013 17:17:33 +0000 (17:17 +0000)
commit2f04304587544dd14277413ebff12fa0f4fc932c
treea98aa6a8de4dd5f7c00f6eaeab725791ed688395
parent1fcf7ce0c60213994269fb59569ec161eb6e08d6
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>
arch/arm64/kernel/hw_breakpoint.c