Skip to content

Commit 2b4cfe6

Browse files
Jason LowIngo Molnar
authored andcommitted
sched/numa: Initialize newidle balance stats in sd_numa_init()
Also initialize the per-sd variables for newidle load balancing in sd_numa_init(). Signed-off-by: Jason Low <jason.low2@hp.com> Acked-by: morten.rasmussen@arm.com Cc: daniel.lezcano@linaro.org Cc: alex.shi@linaro.org Cc: preeti@linux.vnet.ibm.com Cc: efault@gmx.de Cc: vincent.guittot@linaro.org Cc: aswin@hp.com Cc: chegu_vinod@hp.com Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1398303035-18255-3-git-send-email-jason.low2@hp.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 0e5b533 commit 2b4cfe6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/sched/core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6026,6 +6026,8 @@ sd_numa_init(struct sched_domain_topology_level *tl, int cpu)
60266026
,
60276027
.last_balance = jiffies,
60286028
.balance_interval = sd_weight,
6029+
.max_newidle_lb_cost = 0,
6030+
.next_decay_max_lb_cost = jiffies,
60296031
};
60306032
SD_INIT_NAME(sd, NUMA);
60316033
sd->private = &tl->data;

0 commit comments

Comments
 (0)