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

Commit 35847fc6 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: fix single cpu running issue"

parents c1608435 c94eae6f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2943,7 +2943,11 @@ static inline enum sched_boost_policy task_boost_policy(struct task_struct *p)

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

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

#else	/* CONFIG_SCHED_WALT */