diff options
author | Wanpeng Li <liwanp@linux.vnet.ibm.com> | 2013-12-12 15:23:26 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-12-17 15:24:41 +0100 |
commit | e777b63bbd589248eb151a3191ee92331a701385 (patch) | |
tree | b31cc96b7a5be58eafe51b7666b05b6a4419abaf /kernel/sched | |
parent | 82897b4fd3920ffd2456731d4f2ae1406558ef4c (diff) | |
download | op-kernel-dev-e777b63bbd589248eb151a3191ee92331a701385.zip op-kernel-dev-e777b63bbd589248eb151a3191ee92331a701385.tar.gz |
sched/numa: Fix period_slot recalculation
The original code is as intended and was meant to scale the difference
between the NUMA_PERIOD_THRESHOLD and local/remote ratio when adjusting
the scan period. The period_slot recalculation can be dropped.
Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Rik van Riel <riel@redhat.com>
Link: http://lkml.kernel.org/r/1386833006-6600-4-git-send-email-liwanp@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/fair.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 37892d7..4316af2 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1342,7 +1342,6 @@ static void update_task_scan_period(struct task_struct *p, * scanning faster if shared accesses dominate as it may * simply bounce migrations uselessly */ - period_slot = DIV_ROUND_UP(diff, NUMA_PERIOD_SLOTS); ratio = DIV_ROUND_UP(private * NUMA_PERIOD_SLOTS, (private + shared)); diff = (diff * ratio) / NUMA_PERIOD_SLOTS; } |