mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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:
parent
7e8a73c333
commit
90dd46c816
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user