arm64: hw_breakpoint: convert CPU hotplug notifier to new infrastructure
authorWill Deacon <will.deacon@arm.com>
Mon, 15 Aug 2016 17:55:11 +0000 (18:55 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 1 Sep 2016 12:45:51 +0000 (13:45 +0100)
commitd7a83d127a64fd91ef1ad39b7e2d78db36cf388b
treec6bdc26aef406690a7fb44be0311ca87ec5ad2c7
parenta842789837c0e3734357c6b4c54d39d60a1d24b1
arm64: hw_breakpoint: convert CPU hotplug notifier to new infrastructure

The arm64 hw_breakpoint implementation uses a CPU hotplug notifier to
reset the {break,watch}point registers when CPUs come online.

This patch converts the code to the new hotplug mechanism, whilst moving
the invocation earlier to remove the need to disable IRQs explicitly in
the driver (which could cause havok if we trip a watchpoint in an IRQ
handler whilst restoring the debug register state).

Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/hw_breakpoint.c
arch/arm64/kernel/suspend.c
include/linux/cpuhotplug.h