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

Commit d8cc9c0c authored by Mahesh Sivasubramanian's avatar Mahesh Sivasubramanian
Browse files

drivers: cpuidle: lpm-levels: Fixes for clockevents_notify



The use of clockevents_notify is deprecated and targeted APIs are used
instead of the clockevents_notify callbacks. Switch broadcast timer
notifications to tick_broadcast_enter and tick_broadcast_exit.

Change-Id: I3441873eb4009b105db04f4a18d28ae9ccd07e95
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent b9da25ff
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1053,8 +1053,6 @@ static int cluster_configure(struct lpm_cluster *cluster, int idx,
	/* Notify cluster enter event after successfully config completion */
	cluster_notify(cluster, level, true);

	sched_set_cluster_dstate(&cluster->child_cpus, idx, 0, 0);

	cluster->last_level = idx;

	if (predicted && (idx < (cluster->nlevels - 1))) {
@@ -1213,7 +1211,6 @@ static void cluster_unprepare(struct lpm_cluster *cluster,
		WARN_ON(ret);

	}
	sched_set_cluster_dstate(&cluster->child_cpus, 0, 0, 0);

	cluster_notify(cluster, &cluster->levels[last_level], false);

@@ -1437,8 +1434,6 @@ static int lpm_cpuidle_enter(struct cpuidle_device *dev,
	struct power_params *pwr_params;

	pwr_params = &cluster->cpu->levels[idx].pwr;
	sched_set_cpu_cstate(smp_processor_id(), idx + 1,
		pwr_params->energy_overhead, pwr_params->latency_us);

	pwr_params = &cluster->cpu->levels[idx].pwr;