]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/clocksource/arm_arch_timer.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux.git] / drivers / clocksource / arm_arch_timer.c
index 72bbfccef1132c3a962d9e93d4bd6c459f1b368d..fd4b7f684bd030151d388071e05a3c2cfcb5e2c4 100644 (file)
@@ -455,7 +455,11 @@ void arch_timer_enable_workaround(const struct arch_timer_erratum_workaround *wa
                        per_cpu(timer_unstable_counter_workaround, i) = wa;
        }
 
-       static_branch_enable(&arch_timer_read_ool_enabled);
+       /*
+        * Use the locked version, as we're called from the CPU
+        * hotplug framework. Otherwise, we end-up in deadlock-land.
+        */
+       static_branch_enable_cpuslocked(&arch_timer_read_ool_enabled);
 
        /*
         * Don't use the vdso fastpath if errata require using the