Revert "arm64, debug-monitors: Fix CPU hotplug callback registration"
authorMark Brown <broonie@linaro.org>
Wed, 21 May 2014 19:11:24 +0000 (20:11 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 21 May 2014 19:11:24 +0000 (20:11 +0100)
This reverts commit b057e1d80f916922081c7c5bd2c08ff53ed9e4fc.

arch/arm64/kernel/debug-monitors.c

index d202656d9ca17d072e73ceb11e44e47ad6f1f58c..eafcaed942841d8d8d5e380dd2ae30e721f7c713 100644 (file)
@@ -157,16 +157,12 @@ static struct notifier_block __cpuinitdata os_lock_nb = {
 
 static int __cpuinit debug_monitors_init(void)
 {
-       cpu_notifier_register_begin();
-
        /* Clear the OS lock. */
        smp_call_function(clear_os_lock, NULL, 1);
        clear_os_lock(NULL);
 
        /* Register hotplug handler. */
-       __register_cpu_notifier(&os_lock_nb);
-
-       cpu_notifier_register_done();
+       register_cpu_notifier(&os_lock_nb);
        return 0;
 }
 postcore_initcall(debug_monitors_init);