arm64: kernel: implement HW breakpoints CPU PM notifier
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 5 Aug 2013 14:20:35 +0000 (15:20 +0100)
committerAlex Shi <alex.shi@linaro.org>
Mon, 10 Mar 2014 05:38:36 +0000 (13:38 +0800)
commite5d35a7a0a55bf07ba3be28ade279560f3294286
tree5bedb643fec5bc1439101a5a4d0d000a183775bd
parent96666585a0f57734fb19b4f51851fabcb79ff67f
arm64: kernel: implement HW breakpoints CPU PM notifier

When a CPU is shutdown either through CPU idle or suspend to RAM, the
content of HW breakpoint registers must be reset or restored to proper
values when CPU resume from low power states. This patch adds debug register
restore operations to the HW breakpoint control function and implements a
CPU PM notifier that allows to restore the content of HW breakpoint registers
to allow proper suspend/resume operations.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
arch/arm64/kernel/hw_breakpoint.c