From: Srinath Sridharan Date: Mon, 19 Sep 2016 21:37:34 +0000 (-0700) Subject: eas/sched/fair: Fixing comments in find_best_target. X-Git-Tag: firefly_0821_release~176^2~166 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=09c5f91afe959ddcf795ec0479b5c032192b4aae;p=firefly-linux-kernel-4.4.55.git eas/sched/fair: Fixing comments in find_best_target. Change-Id: I83f5b9887e98f9fdb81318cde45408e7ebfc4b13 Signed-off-by: Srinath Sridharan --- diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index cf56241ac262..14c06f92184c 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5710,17 +5710,19 @@ 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. + if (prefer_idle) { + /* 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;