diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 68bbb5f0e6f0..3121ad039471 100755 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -7438,7 +7438,7 @@ static int start_cpu(struct task_struct *p, bool boosted, } #endif - if (boosted) { + if (boosted && p->prio <= DEFAULT_PRIO) { if (rd->mid_cap_orig_cpu != -1 && task_fits_max(p, rd->mid_cap_orig_cpu)) return rd->mid_cap_orig_cpu; @@ -7879,7 +7879,7 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu, */ if ((prefer_idle && best_idle_cpu != -1) || (boosted && (best_idle_cpu != -1 || target_cpu != -1))) { - if (boosted) { + if (boosted && p->prio <= DEFAULT_PRIO) { if (!next_group_higher_cap) break; } else {