arm64: cpu hotplug: ensure we mask out CPU_TASKS_FROZEN in notifiers
[cascardo/linux.git] / arch / arm64 / kernel / debug-monitors.c
index 9b3b62a..cebf786 100644 (file)
@@ -134,7 +134,7 @@ static int os_lock_notify(struct notifier_block *self,
                                    unsigned long action, void *data)
 {
        int cpu = (unsigned long)data;
-       if (action == CPU_ONLINE)
+       if ((action & ~CPU_TASKS_FROZEN) == CPU_ONLINE)
                smp_call_function_single(cpu, clear_os_lock, NULL, 1);
        return NOTIFY_OK;
 }