|
@@ -56,14 +56,19 @@ static struct notifier_block dummy_timer_cpu_nb = {
|
|
|
|
|
|
static int __init dummy_timer_register(void)
|
|
static int __init dummy_timer_register(void)
|
|
{
|
|
{
|
|
- int err = register_cpu_notifier(&dummy_timer_cpu_nb);
|
|
|
|
|
|
+ int err = 0;
|
|
|
|
+
|
|
|
|
+ cpu_notifier_register_begin();
|
|
|
|
+ err = __register_cpu_notifier(&dummy_timer_cpu_nb);
|
|
if (err)
|
|
if (err)
|
|
- return err;
|
|
|
|
|
|
+ goto out;
|
|
|
|
|
|
/* We won't get a call on the boot CPU, so register immediately */
|
|
/* We won't get a call on the boot CPU, so register immediately */
|
|
if (num_possible_cpus() > 1)
|
|
if (num_possible_cpus() > 1)
|
|
dummy_timer_setup();
|
|
dummy_timer_setup();
|
|
|
|
|
|
- return 0;
|
|
|
|
|
|
+out:
|
|
|
|
+ cpu_notifier_register_done();
|
|
|
|
+ return err;
|
|
}
|
|
}
|
|
early_initcall(dummy_timer_register);
|
|
early_initcall(dummy_timer_register);
|