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

Commit 32014253 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: lpm: Fix cpu and cluster pm notifications"

parents 0fa3b9f9 1c3ce913
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -472,7 +472,7 @@ static int cluster_configure(struct lpm_cluster *cluster, int idx,
		/*
		 * Notify that the cluster is entering a low power mode
		 */
		if (level->mode[i] == MSM_SPM_MODE_POWER_COLLAPSE)
		if (level->mode[i] == MSM_PM_SLEEP_MODE_POWER_COLLAPSE)
			cpu_cluster_pm_enter();
	}
	if (level->notify_rpm) {
@@ -614,7 +614,7 @@ static void cluster_unprepare(struct lpm_cluster *cluster,
		BUG_ON(ret);

		if (cluster->levels[last_level].mode[i] ==
				MSM_SPM_MODE_POWER_COLLAPSE)
				MSM_PM_SLEEP_MODE_POWER_COLLAPSE)
			cpu_cluster_pm_exit();
	}
unlock_return:
@@ -642,6 +642,10 @@ static inline void cpu_prepare(struct lpm_cluster *cluster, int cpu_index,
	if (from_idle && (cpu_level->use_bc_timer ||
			(cpu_index >= cluster->min_child_level)))
		clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &cpu);

	if (from_idle && ((cpu_level->mode == MSM_PM_SLEEP_MODE_POWER_COLLAPSE)
		|| (cpu_level->mode ==
			MSM_PM_SLEEP_MODE_POWER_COLLAPSE_STANDALONE)))
		cpu_pm_enter();
}

@@ -654,6 +658,10 @@ static inline void cpu_unprepare(struct lpm_cluster *cluster, int cpu_index,
	if (from_idle && (cpu_level->use_bc_timer ||
			(cpu_index >= cluster->min_child_level)))
		clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &cpu);

	if (from_idle && ((cpu_level->mode == MSM_PM_SLEEP_MODE_POWER_COLLAPSE)
		|| (cpu_level->mode ==
			MSM_PM_SLEEP_MODE_POWER_COLLAPSE_STANDALONE)))
		cpu_pm_exit();
}