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

Skip to content
Commit a1c4085f authored by Mahesh Sivasubramanian's avatar Mahesh Sivasubramanian
Browse files

msm: clock-krait-8974: Change ref count behavior at boot



Set up the refcount of the L2 clock to be equal to the number of online
cores. This allows the clients of the CPU/L2 clocks that enable/disable
them to be agnostic of the no. of cores that are online.

For example, the CPU idle code can call clk_disable() on the L2 clock
from all the cores' idle path without having to figure out if it's the
last active core. If the core is the last core that's active, the ref
count will go from 1 to 0 and the clock would get disabled.

Also update cpufreq driver behavior to accomodate this change.

Change-Id: If253a85ad62f0a6a78452dafc7afe86bd112cf73
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent 96c5c4bc
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