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

Commit 35b79779 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
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: Icacb99a08335b3a3038db202227e69e06009ae49
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent a913c1df
Loading
Loading
Loading
Loading
+15 −14
Original line number Diff line number Diff line
@@ -637,7 +637,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;
@@ -645,18 +644,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);