Loading kernel/sched/fair.c +7 −5 Original line number Diff line number Diff line Loading @@ -5675,16 +5675,18 @@ static inline int find_best_target(struct task_struct *p, bool boosted, bool pre if (new_util < cur_capacity) { if (cpu_rq(i)->nr_running) { if (prefer_idle) { // Find a target cpu with lowest // utilization. /* Find a target cpu with highest * utilization. */ if (target_util == 0 || target_util < new_util) { target_cpu = i; target_util = new_util; } } else { // Find a target cpu with highest // utilization. /* Find a target cpu with lowest * utilization. */ if (target_util == 0 || target_util > new_util) { target_cpu = i; Loading Loading
kernel/sched/fair.c +7 −5 Original line number Diff line number Diff line Loading @@ -5675,16 +5675,18 @@ static inline int find_best_target(struct task_struct *p, bool boosted, bool pre if (new_util < cur_capacity) { if (cpu_rq(i)->nr_running) { if (prefer_idle) { // Find a target cpu with lowest // utilization. /* Find a target cpu with highest * utilization. */ if (target_util == 0 || target_util < new_util) { target_cpu = i; target_util = new_util; } } else { // Find a target cpu with highest // utilization. /* Find a target cpu with lowest * utilization. */ if (target_util == 0 || target_util > new_util) { target_cpu = i; Loading