msm: lpm_resources: Disable L2 PC at CPU_UP_PREPARE
When the core is being brought of hotplug, disable L2 low power modes.
The precondtion for L2 power collapse is that all cores be power
collapsed and the L2 is programmed for power collapse only when the
secondary cores are hotplugged.
When the secondary core is being brought out of power collapse, before
it is marked as online, the primary core could enter a idle low power
mode programming the L2 for power collapse.If the secondary core were
to execute a wfi instruction then when primary core is in a low power
mode, L2 would being executing its power collapse sequence. As a part of
the L2 power collapse sequence, the Kraits are reset which could result
in the secondary core errorneously executing warmboot code.
Change-Id: Ibd0fdbce8599a879f71f5355b3a96c84383d6c99
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
1 file changed