Skip to content

Commit

Permalink
sched/fair: Fix incorrect comment for capacity_margin
Browse files Browse the repository at this point in the history
The comment for capacity_margin introduced in:

  3273163 ("sched/fair: Let asymmetric CPU configurations balance at wake-up")

... got its usage the wrong way round - fix it.

Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: dietmar.eggemann@arm.com
Cc: freedom.tan@mediatek.com
Cc: keita.kobayashi.ym@renesas.com
Cc: mgalbraith@suse.de
Cc: sgurrappadi@nvidia.com
Cc: vincent.guittot@linaro.org
Cc: yuyang.du@intel.com
Link: http://lkml.kernel.org/r/1476452472-24740-7-git-send-email-morten.rasmussen@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Morten Rasmussen authored and Ingo Molnar committed Nov 16, 2016
1 parent 9e0994c commit 893c5d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ unsigned int sysctl_sched_cfs_bandwidth_slice = 5000UL;

/*
* The margin used when comparing utilization with CPU capacity:
* util * 1024 < capacity * margin
* util * margin < capacity * 1024
*/
unsigned int capacity_margin = 1280; /* ~20% */

Expand Down

0 comments on commit 893c5d2

Please sign in to comment.