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

Commit 746245c8 authored by Satya Durga Srinivasu Prabhala's avatar Satya Durga Srinivasu Prabhala
Browse files

sched/core_ctl: disable prev assist by default



Prev assist is not needed for all clusters with in the system
and can be enabled from user space for specific cluster as needed.
So, disable prev assist by default and update checks as necessary.

Change-Id: I3e3770a0f2dc6f588693c98e3b8514b4fab29fd6
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent 96a6526f
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -676,8 +676,7 @@ static unsigned int apply_task_need(const struct cluster_data *cluster,
	 * unisolate as many cores as the previous cluster
	 * needs assistance with.
	 */
	if (cluster->nr_prev_assist_thresh != 0 &&
		cluster->nr_prev_assist >= cluster->nr_prev_assist_thresh)
	if (cluster->nr_prev_assist >= cluster->nr_prev_assist_thresh)
		new_need = new_need + cluster->nr_prev_assist;

	/* only unisolate more cores if there are tasks to run */
@@ -1204,7 +1203,7 @@ static int cluster_init(const struct cpumask *mask)
	cluster->need_cpus = cluster->num_cpus;
	cluster->offline_delay_ms = 100;
	cluster->task_thres = UINT_MAX;
	cluster->nr_prev_assist_thresh = 0;
	cluster->nr_prev_assist_thresh = UINT_MAX;
	cluster->nrrun = cluster->num_cpus;
	cluster->enable = true;
	cluster->nr_not_preferred_cpus = 0;