|
@@ -1072,6 +1072,8 @@ static int __init arch_hw_breakpoint_init(void)
|
|
|
core_num_brps = get_num_brps();
|
|
|
core_num_wrps = get_num_wrps();
|
|
|
|
|
|
+ cpu_notifier_register_begin();
|
|
|
+
|
|
|
/*
|
|
|
* We need to tread carefully here because DBGSWENABLE may be
|
|
|
* driven low on this core and there isn't an architected way to
|
|
@@ -1088,6 +1090,7 @@ static int __init arch_hw_breakpoint_init(void)
|
|
|
if (!cpumask_empty(&debug_err_mask)) {
|
|
|
core_num_brps = 0;
|
|
|
core_num_wrps = 0;
|
|
|
+ cpu_notifier_register_done();
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -1107,7 +1110,10 @@ static int __init arch_hw_breakpoint_init(void)
|
|
|
TRAP_HWBKPT, "breakpoint debug exception");
|
|
|
|
|
|
/* Register hotplug and PM notifiers. */
|
|
|
- register_cpu_notifier(&dbg_reset_nb);
|
|
|
+ __register_cpu_notifier(&dbg_reset_nb);
|
|
|
+
|
|
|
+ cpu_notifier_register_done();
|
|
|
+
|
|
|
pm_init();
|
|
|
return 0;
|
|
|
}
|