]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b47f804fe4739d8db8d6dfdcf183e41d1fd732f
treec6bdc26aef406690a7fb44be0311ca87ec5ad2c7
parentc8552f317a404ed9419ff829fab4ace2d6badbb4
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