]> git.karo-electronics.de Git - karo-tx-linux.git/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>
Thu, 25 Oct 2012 16:19:46 +0000 (17:19 +0100)
commit506674eea876387304cfb628f7e5de3388719cc2
treed3c4f43daa88a8cdcb688d34b5cb809e8fee4631
parent6f0c0580b70c89094b3422ba81118c7b959c7556
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