ARM: hw_breakpoint: reset debug logic on secondary CPUs in s2ram resume
Subsystems (2)
PATCH 1/1 ARM: hw_breakpoint: reset debug logic on secondary CPUs in s2ram resume
From: Dietmar Eggemann <[email protected]>
We must mask out the CPU_TASKS_FROZEN bit so that reset_ctrl_regs is also called on a secondary CPU during s2ram resume, where only the boot CPU will receive the PM_EXIT notification.
Signed-off-by Dietmar Eggemann <[email protected]>
Signed-off-by Will Deacon <[email protected]>
--- arch/arm/kernel/hw_breakpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kernel/hw_breakpoint.c +1 -1
@@ -1023,7 +1023,7 @@ out_mdbgen:static int __cpuinit dbg_reset_notify (struct notifier_block *self,unsigned long action,void *cpu) { -if (action ==CPU_ONLINE ) +if ((action & ~CPU_TASKS_FROZEN ) ==CPU_ONLINE )smp_call_function_single ((int )cpu, reset_ctrl_regs,NULL ,1 );return NOTIFY_OK ;
Signature · 1 line
1.8.0