sched: Rename load_balance_tmpmask to load_balance_mask
This name doesn't represent specific meaning. So rename it to imply it's purpose. Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Tested-by: Jason Low <jason.low2@hp.com> Cc: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com> Cc: Davidlohr Bueso <davidlohr.bueso@hp.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1366705662-3587-6-git-send-email-iamjoonsoo.kim@lge.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
d31980846f
commit
e6252c3ef4
2 changed files with 4 additions and 4 deletions
|
@ -6873,7 +6873,7 @@ struct task_group root_task_group;
|
||||||
LIST_HEAD(task_groups);
|
LIST_HEAD(task_groups);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DECLARE_PER_CPU(cpumask_var_t, load_balance_tmpmask);
|
DECLARE_PER_CPU(cpumask_var_t, load_balance_mask);
|
||||||
|
|
||||||
void __init sched_init(void)
|
void __init sched_init(void)
|
||||||
{
|
{
|
||||||
|
@ -6910,7 +6910,7 @@ void __init sched_init(void)
|
||||||
#endif /* CONFIG_RT_GROUP_SCHED */
|
#endif /* CONFIG_RT_GROUP_SCHED */
|
||||||
#ifdef CONFIG_CPUMASK_OFFSTACK
|
#ifdef CONFIG_CPUMASK_OFFSTACK
|
||||||
for_each_possible_cpu(i) {
|
for_each_possible_cpu(i) {
|
||||||
per_cpu(load_balance_tmpmask, i) = (void *)ptr;
|
per_cpu(load_balance_mask, i) = (void *)ptr;
|
||||||
ptr += cpumask_size();
|
ptr += cpumask_size();
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_CPUMASK_OFFSTACK */
|
#endif /* CONFIG_CPUMASK_OFFSTACK */
|
||||||
|
|
|
@ -4977,7 +4977,7 @@ static struct rq *find_busiest_queue(struct lb_env *env,
|
||||||
#define MAX_PINNED_INTERVAL 512
|
#define MAX_PINNED_INTERVAL 512
|
||||||
|
|
||||||
/* Working cpumask for load_balance and load_balance_newidle. */
|
/* Working cpumask for load_balance and load_balance_newidle. */
|
||||||
DEFINE_PER_CPU(cpumask_var_t, load_balance_tmpmask);
|
DEFINE_PER_CPU(cpumask_var_t, load_balance_mask);
|
||||||
|
|
||||||
static int need_active_balance(struct lb_env *env)
|
static int need_active_balance(struct lb_env *env)
|
||||||
{
|
{
|
||||||
|
@ -5012,7 +5012,7 @@ static int load_balance(int this_cpu, struct rq *this_rq,
|
||||||
struct sched_group *group;
|
struct sched_group *group;
|
||||||
struct rq *busiest;
|
struct rq *busiest;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
struct cpumask *cpus = __get_cpu_var(load_balance_tmpmask);
|
struct cpumask *cpus = __get_cpu_var(load_balance_mask);
|
||||||
|
|
||||||
struct lb_env env = {
|
struct lb_env env = {
|
||||||
.sd = sd,
|
.sd = sd,
|
||||||
|
|
Loading…
Add table
Reference in a new issue