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

Commit 560abc36 authored by Karthik Parsha's avatar Karthik Parsha
Browse files

msm: lpm-levels: Add support for CCI auto hardware clock gating



CCI auto hardware clock gating is exercised independent of CCI
SPM. To support auto hardware clock gating, disable CCI SPM when
clock gating lpm level is chosen.

Change-Id: Ice9cfdb9277e8604b9ac02541907caa6d30e160a
Signed-off-by: default avatarKarthik Parsha <kparsha@codeaurora.org>
parent c3e1cf6f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -225,7 +225,10 @@ int set_l2_mode(struct low_power_ops *ops, int mode, bool notify_rpm)

int set_cci_mode(struct low_power_ops *ops, int mode, bool notify_rpm)
{
	return msm_spm_config_low_power_mode(ops->spm, mode, notify_rpm);
	int lpm = mode;
	if (mode == MSM_SPM_MODE_CLOCK_GATING)
		lpm = MSM_SPM_MODE_DISABLED;
	return msm_spm_config_low_power_mode(ops->spm, lpm, notify_rpm);
}

static int cpu_power_select(struct cpuidle_device *dev,