aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/arm_arch_timer.c
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2017-08-01 04:02:57 -0400
committerIngo Molnar <mingo@kernel.org>2017-08-10 06:29:00 -0400
commit450f9689f294c331c56ec37d68302ccc19c7caa2 (patch)
tree44c24dfc4959328092637722e4d365288ebe4dec /drivers/clocksource/arm_arch_timer.c
parent5a40527f8f0798553764fc8db4111d7d9c33ea51 (diff)
clocksource/arm_arch_timer: Use static_branch_enable_cpuslocked()
Use the new static_branch_enable_cpuslocked() function to switch the workaround static key on the CPU hotplug path. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Leo Yan <leo.yan@linaro.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/20170801080257.5056-5-marc.zyngier@arm.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/clocksource/arm_arch_timer.c')
-rw-r--r--drivers/clocksource/arm_arch_timer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
index aae87c4c546e..c62e71614c75 100644
--- a/drivers/clocksource/arm_arch_timer.c
+++ b/drivers/clocksource/arm_arch_timer.c
@@ -455,7 +455,11 @@ void arch_timer_enable_workaround(const struct arch_timer_erratum_workaround *wa
455 per_cpu(timer_unstable_counter_workaround, i) = wa; 455 per_cpu(timer_unstable_counter_workaround, i) = wa;
456 } 456 }
457 457
458 static_branch_enable(&arch_timer_read_ool_enabled); 458 /*
459 * Use the locked version, as we're called from the CPU
460 * hotplug framework. Otherwise, we end-up in deadlock-land.
461 */
462 static_branch_enable_cpuslocked(&arch_timer_read_ool_enabled);
459 463
460 /* 464 /*
461 * Don't use the vdso fastpath if errata require using the 465 * Don't use the vdso fastpath if errata require using the