sched/cass: Skip reserved cpus

Change-Id: I77e5663fa00afba2211b52997e007a0f2e6364e2
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
Alexander Winkowski 2024-05-15 17:18:56 +00:00 committed by Richard Raya
parent 7e8a73c333
commit 90dd46c816

View File

@ -165,6 +165,9 @@ static int cass_best_cpu(struct task_struct *p, int prev_cpu, bool sync, bool rt
struct cpuidle_state *idle_state;
struct rq *rq = cpu_rq(cpu);
if (is_reserved(cpu))
continue;
/* Get the original, maximum _possible_ capacity of this CPU */
curr->cap_max = arch_scale_cpu_capacity(NULL, cpu);