sched/fair: Fix comment in calculate_imbalance()
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Fri, 29 Apr 2016 19:32:39 +0000 (20:32 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 5 May 2016 07:41:10 +0000 (09:41 +0200)
commit885e542ce827f5f102fe9628d63c6430c8b7ab2c
tree53183b271b82647fb051aac7c317dda62ff5a0ef
parent0a9b23ce46cd5d3a360fbefca8ffce441c55046e
sched/fair: Fix comment in calculate_imbalance()

The comment in calculate_imbalance() was introduced in commit:

 2dd73a4f09be ("[PATCH] sched: implement smpnice")

which described the logic as it was then, but a later commit:

  b18855500fc4 ("sched/balancing: Fix 'local->avg_load > sds->avg_load' case in calculate_imbalance()")

.. complicated this logic some more so that the comment does not match anymore.

Update the comment to match the code.

Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Morten Rasmussen <morten.rasmussen@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1461958364-675-3-git-send-email-dietmar.eggemann@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c