aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/topology.h
diff options
context:
space:
mode:
authorJason Low <jason.low2@hp.com>2013-09-13 14:26:53 -0400
committerIngo Molnar <mingo@kernel.org>2013-09-20 06:03:46 -0400
commitf48627e686a69f5215cb0761e731edb3d9859dd9 (patch)
tree510f55a0971da16bdb2922da2c0ebad47bdc5e3d /include/linux/topology.h
parent9bd721c55c8a886b938a45198aab0ccb52f1f7fa (diff)
sched/balancing: Periodically decay max cost of idle balance
This patch builds on patch 2 and periodically decays that max value to do idle balancing per sched domain by approximately 1% per second. Also decay the rq's max_idle_balance_cost value. Signed-off-by: Jason Low <jason.low2@hp.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1379096813-3032-4-git-send-email-jason.low2@hp.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/topology.h')
-rw-r--r--include/linux/topology.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/topology.h b/include/linux/topology.h
index e2a2c3da2929..12ae6ce997d6 100644
--- a/include/linux/topology.h
+++ b/include/linux/topology.h
@@ -107,6 +107,7 @@ int arch_update_cpu_topology(void);
107 .balance_interval = 1, \ 107 .balance_interval = 1, \
108 .smt_gain = 1178, /* 15% */ \ 108 .smt_gain = 1178, /* 15% */ \
109 .max_newidle_lb_cost = 0, \ 109 .max_newidle_lb_cost = 0, \
110 .next_decay_max_lb_cost = jiffies, \
110} 111}
111#endif 112#endif
112#endif /* CONFIG_SCHED_SMT */ 113#endif /* CONFIG_SCHED_SMT */
@@ -137,6 +138,7 @@ int arch_update_cpu_topology(void);
137 .last_balance = jiffies, \ 138 .last_balance = jiffies, \
138 .balance_interval = 1, \ 139 .balance_interval = 1, \
139 .max_newidle_lb_cost = 0, \ 140 .max_newidle_lb_cost = 0, \
141 .next_decay_max_lb_cost = jiffies, \
140} 142}
141#endif 143#endif
142#endif /* CONFIG_SCHED_MC */ 144#endif /* CONFIG_SCHED_MC */
@@ -169,6 +171,7 @@ int arch_update_cpu_topology(void);
169 .last_balance = jiffies, \ 171 .last_balance = jiffies, \
170 .balance_interval = 1, \ 172 .balance_interval = 1, \
171 .max_newidle_lb_cost = 0, \ 173 .max_newidle_lb_cost = 0, \
174 .next_decay_max_lb_cost = jiffies, \
172} 175}
173#endif 176#endif
174 177