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

Commit 381749aa authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Gerrit - the friendly Code Review server
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: I4d94a59bce755bfcf7c91a4db1b4693ff5b3f6bb
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent 1aeb977e
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) {