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

Commit 25740ee6 authored by Archana Sathyakumar's avatar Archana Sathyakumar
Browse files

lpm-levels: Remove hotplug serialization before cluster initialization



In the event where cpu hotplug happens before lpm probe completion,
it fails as the per_cpu cluster variables and the remote spin lock
has not been initialized yet.

There is no need to serialize hotplug before reading all the cluster
levels for the target in the probe. Return the default flag and do
not acquire the remote spin lock in lpm_cpu_pre_pc_cb call.

Change-Id: Idbffa9c3a5ca5b4e8edf280760f26558230eb461
Signed-off-by: default avatarArchana Sathyakumar <asathyak@codeaurora.org>
parent a65a4f74
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -953,6 +953,12 @@ enum msm_pm_l2_scm_flag lpm_cpu_pre_pc_cb(unsigned int cpu)
	struct lpm_cluster *cluster = per_cpu(cpu_cluster, cpu);
	enum msm_pm_l2_scm_flag retflag = MSM_SCM_L2_ON;

	/*
	 * No need to acquire the lock if probe isn't completed yet
	 */
	if (!cluster)
		return retflag;

	/*
	 * Assumes L2 only. What/How parameters gets passed into TZ will
	 * determine how this function reports this info back in msm-pm.c