diff options
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/fair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index fbc0b8214af0..e9abd4e4c5cb 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
@@ -1530,7 +1530,7 @@ static void update_task_scan_period(struct task_struct *p, | |||
1530 | * scanning faster if shared accesses dominate as it may | 1530 | * scanning faster if shared accesses dominate as it may |
1531 | * simply bounce migrations uselessly | 1531 | * simply bounce migrations uselessly |
1532 | */ | 1532 | */ |
1533 | ratio = DIV_ROUND_UP(private * NUMA_PERIOD_SLOTS, (private + shared)); | 1533 | ratio = DIV_ROUND_UP(private * NUMA_PERIOD_SLOTS, (private + shared + 1)); |
1534 | diff = (diff * ratio) / NUMA_PERIOD_SLOTS; | 1534 | diff = (diff * ratio) / NUMA_PERIOD_SLOTS; |
1535 | } | 1535 | } |
1536 | 1536 | ||