Loading kernel/sched/sched.h +5 −1 Original line number Diff line number Diff line Loading @@ -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 */ Loading Loading
kernel/sched/sched.h +5 −1 Original line number Diff line number Diff line Loading @@ -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 */ Loading