diff options
| author | Srinath Sridharan <srinathsr@google.com> | 2016-09-19 14:37:34 -0700 |
|---|---|---|
| committer | Srinath Sridharan <srinathsr@google.com> | 2016-09-20 10:51:54 -0700 |
| commit | 5449876ad748ec9eae64267f3d7aab93c82a464d (patch) | |
| tree | 5d40aeb406525d58dd65ecb9a17d9327fda45ccb /kernel | |
| parent | fa42b29f530e15078b4e3070fd62e310211ee3de (diff) | |
eas/sched/fair: Fixing comments in find_best_target.
Change-Id: I83f5b9887e98f9fdb81318cde45408e7ebfc4b13
Signed-off-by: Srinath Sridharan <srinathsr@google.com>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/sched/fair.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 2cd3e2671f16..7e42cd11e430 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5674,17 +5674,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; |
