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

Commit fac669da authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Gerrit - the friendly Code Review server
Browse files

core_ctl: Keep all CPUs un-isolated while boost is active



Currently BIG cluster CPUs are kept active while boost is enabled.
If core_ctl is used for the little cluster, these CPUs can be
isolated. Keeping all CPUs active during boost is desired for the
best performance.

Change-Id: Ife097b0b60261ea7740c8e310ae1246a3ee18826
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent 66359021
Loading
Loading
Loading
Loading
+15 −14
Original line number Diff line number Diff line
@@ -638,7 +638,6 @@ int core_ctl_set_boost(bool boost)

	spin_lock_irqsave(&state_lock, flags);
	for_each_cluster(cluster, index) {
		if (cluster->is_big_cluster) {
		if (boost) {
			boost_state_changed = !cluster->boost;
			++cluster->boost;
@@ -646,18 +645,20 @@ int core_ctl_set_boost(bool boost)
			if (!cluster->boost) {
				pr_err("Error turning off boost. Boost already turned off\n");
				ret = -EINVAL;
				break;
			} else {
				--cluster->boost;
				boost_state_changed = !cluster->boost;
			}
		}
			break;
		}
	}
	spin_unlock_irqrestore(&state_lock, flags);

	if (boost_state_changed)
	if (boost_state_changed) {
		index = 0;
		for_each_cluster(cluster, index)
			apply_need(cluster);
	}

	trace_core_ctl_set_boost(cluster->boost, ret);