]> Pileus Git - ~andy/linux/commit
ARM: hw_breakpoint: only clear OS lock when implemented on v7
authorWill Deacon <will.deacon@arm.com>
Fri, 21 Sep 2012 13:53:13 +0000 (14:53 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 9 Nov 2012 11:47:05 +0000 (11:47 +0000)
commite64877dcf5fd05d81fa195785a738f3a729587a3
treeec31d1ca85f3655f46e0ccbb4a7276797f53a506
parent3d70f8c617a436c7146ecb81df2265b4626dfe89
ARM: hw_breakpoint: only clear OS lock when implemented on v7

The OS save and restore register are optional in debug architecture v7,
so check the status register before attempting to clear the OS lock.

Tested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/hw_breakpoint.c