Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e4789198 authored by Vikram Mulukutla's avatar Vikram Mulukutla
Browse files

qcom: clock-cpu-8994: Don't set CPU clocks to HANDOFF_ENABLED_CLK



Setting the cluster clock's refcount to 1 during handoff will cause
the clock framework's late_initcall_sync logic to decrement
the refcount to zero - if all the CPUs in the cluster are either
power collapsed or hotplugged out before late_initcall_sync.

Since the cluster clock muxes cannot be switched when the cluster
is in power collapse, it is wrong for a context outside of the
hotplug notifiers or the low power mode driver to decrement
the refcount on the cluster clocks to zero; this will cause a
mux switch without any guarantee that the cluster is not power
collapsed at that point.

Therefore, always return HANDOFF_DISABLED_CLK for the cluster
clocks. The probe() function will increment the cluster clock
refcount for each online CPU either way.

Change-Id: I615e44a006d249eb8f0f548fc7ebca9f293f159c
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent b5a909ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment