eas/sched/fair: Fixing comments in find_best_target.

Change-Id: I83f5b9887e98f9fdb81318cde45408e7ebfc4b13
Signed-off-by: Srinath Sridharan <srinathsr@google.com>
This commit is contained in:
Srinath Sridharan 2016-09-19 14:37:34 -07:00 committed by Amit Pundir
parent e931652d1b
commit 09c5f91afe

View file

@ -5711,16 +5711,18 @@ static inline int find_best_target(struct task_struct *p, bool boosted, bool pre
if (new_util < cur_capacity) { if (new_util < cur_capacity) {
if (cpu_rq(i)->nr_running) { if (cpu_rq(i)->nr_running) {
if (prefer_idle) { if (prefer_idle) {
// Find a target cpu with lowest /* Find a target cpu with highest
// utilization. * utilization.
*/
if (target_util == 0 || if (target_util == 0 ||
target_util < new_util) { target_util < new_util) {
target_cpu = i; target_cpu = i;
target_util = new_util; target_util = new_util;
} }
} else { } else {
// Find a target cpu with highest /* Find a target cpu with lowest
// utilization. * utilization.
*/
if (target_util == 0 || if (target_util == 0 ||
target_util > new_util) { target_util > new_util) {
target_cpu = i; target_cpu = i;