arm64: kernel: implement HW breakpoints CPU PM notifier
commit60fc6942f6ac124503ed7f8506736a8f56b4ca7e
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 5 Aug 2013 14:20:35 +0000 (5 15:20 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 16 Dec 2013 17:17:34 +0000 (16 17:17 +0000)
tree62187c5311329a3bff8f62eb91c50d805e3d7a60
parent2f04304587544dd14277413ebff12fa0f4fc932c
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