Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225921
b: refs/heads/master
c: 7d99331
h: refs/heads/master
i:
  225919: 03043f6
v: v3
  • Loading branch information
Will Deacon committed Dec 6, 2010
1 parent 3975a36 commit c2b1631
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ac88e07122fc0eb5cbad403be97ef02c317a06b7
refs/heads/master: 7d99331e4793b52d488e911876ef11d843c6c8c9
16 changes: 15 additions & 1 deletion trunk/arch/arm/kernel/hw_breakpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ static int hw_breakpoint_pending(unsigned long addr, unsigned int fsr,
/*
* One-time initialisation.
*/
static void __init reset_ctrl_regs(void *unused)
static void reset_ctrl_regs(void *unused)
{
int i;

Expand Down Expand Up @@ -799,6 +799,18 @@ static void __init reset_ctrl_regs(void *unused)
}
}

static int __cpuinit dbg_reset_notify(struct notifier_block *self,
unsigned long action, void *cpu)
{
if (action == CPU_ONLINE)
smp_call_function_single((int)cpu, reset_ctrl_regs, NULL, 1);
return NOTIFY_OK;
}

static struct notifier_block __cpuinitdata dbg_reset_nb = {
.notifier_call = dbg_reset_notify,
};

static int __init arch_hw_breakpoint_init(void)
{
int ret = 0;
Expand Down Expand Up @@ -846,6 +858,8 @@ static int __init arch_hw_breakpoint_init(void)
hook_ifault_code(2, hw_breakpoint_pending, SIGTRAP, TRAP_HWBKPT,
"breakpoint debug exception");

/* Register hotplug notifier. */
register_cpu_notifier(&dbg_reset_nb);
out:
return ret;
}
Expand Down

0 comments on commit c2b1631

Please sign in to comment.