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

Commit 32e5f45f authored by Olav Haugan's avatar Olav Haugan
Browse files

lpm-levels: Call into scheduler to indicate dstate level



Let scheduler know about current cluster dstate to allow scheduler to
make better decision on the cost of placing a task on a cpu in a
cluster.

Change-Id: Ia5a3e4492163d8e2baf16e561e1bed136b54e5ad
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent ff198e03
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -559,6 +559,8 @@ 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;
	spin_unlock(&cluster->sync_lock);
	return 0;
@@ -687,6 +689,8 @@ static void cluster_unprepare(struct lpm_cluster *cluster,
		BUG_ON(ret);

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

	cluster_notify(cluster, &cluster->levels[last_level], false);
unlock_return:
	spin_unlock(&cluster->sync_lock);