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

Commit 97b4c065 authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar
Browse files

Revert "sched: fix single cpu running issue"



Previously, walt sched clusters prepared with empty cpumask for
single core bootup, which causes panic. Now sched clusters preparation
avoids empty cpu mask, so the commit 'c94eae6f("sched: fix single
cpu running issue")' becomes stale now, and it is adding extra
overhead in scheduler hotpaths, so remove it.

Change-Id: Ie6167e7c148d35b94fb8101caea16282d6d133fc
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent 1aac6a3d
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -2942,11 +2942,7 @@ static inline enum sched_boost_policy task_boost_policy(struct task_struct *p)

static inline bool is_min_capacity_cluster(struct sched_cluster *cluster)
{
	int cpu = cluster_first_cpu(cluster);

	if (cpu >= num_possible_cpus())
		return false;
	return is_min_capacity_cpu(cpu);
	return is_min_capacity_cpu(cluster_first_cpu(cluster));
}

#else	/* CONFIG_SCHED_WALT */