sched/numa: Fix numa capacity computation
authorRik van Riel <riel@redhat.com>
Mon, 4 Aug 2014 17:23:28 +0000 (13:23 -0400)
committerIngo Molnar <mingo@kernel.org>
Tue, 12 Aug 2014 10:48:23 +0000 (12:48 +0200)
commit83d7f2424741c9dc76c21377c9d00d47abaf88df
treeeddb9a5732788c00247c3bb430b14bea4bc6c953
parentb932c03c34f3b03c7364c06aa8cae5b74609fc41
sched/numa: Fix numa capacity computation

Commit c61037e9 fixes the phenomenon of 'fantom' cores due to
N*frac(smt_power) >= 1 by limiting the capacity to the actual
number of cores in the load balancing code.

This patch applies the same correction to the NUMA balancing
code.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: mgorman@suse.de
Cc: vincent.guittot@linaro.org
Cc: Morten.Rasmussen@arm.com
Cc: nicolas.pitre@linaro.org
Cc: efault@gmx.de
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1407173008-9334-3-git-send-email-riel@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c