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

Commit d198dde6 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

core_ctl: Bail out early from the boost API when core_ctl is disabled



core_ctl can be completely disabled from a kernel parameter now.
Add a check to bail out early from the boost API.

Change-Id: Ib825500b0cb2c06af2cfcb82e5d79f91e9dd7b3b
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 1e951a7f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -653,6 +653,9 @@ int core_ctl_set_boost(bool boost)
	int ret = 0;
	bool boost_state_changed = false;

	if (unlikely(!initialized))
		return 0;

	spin_lock_irqsave(&state_lock, flags);
	for_each_cluster(cluster, index) {
		if (cluster->is_big_cluster) {