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

Skip to content
Commit 3de5c67f authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Stephen Boyd
Browse files

msm: krait-regulator: enable phase management based on cpu status



The current code enables phase management at late init stage. This is
safe except if the acpuclock driver moves to late init stage, we might end
up enabling phase management before the acpuclock driver gets to call
voltage and mode callbacks on already onlined cpus. We risk
prematurely lowering the phase count and browning out the device.

Instead check how many cpus are actually online at probe time and enable
phase management only after voltage and mode callbacks happen for them.

Change-Id: I5bf70d7aacc4c1fdc7a20a9458b7ce419fc66265
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent b646f2e1
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