sched/numa: Remove unused numa_stats::nr_running field
nr_running in struct numa_stats is not used anywhere in the code. Remove it. Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Acked-by: Mel Gorman <mgorman@techsingularity.net> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rik van Riel <riel@surriel.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1535548752-4434-3-git-send-email-vincent.guittot@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
Родитель
d90707ebeb
Коммит
7477a3504e
|
@ -1454,8 +1454,6 @@ struct numa_stats {
|
||||||
|
|
||||||
/* Total compute capacity of CPUs on a node */
|
/* Total compute capacity of CPUs on a node */
|
||||||
unsigned long compute_capacity;
|
unsigned long compute_capacity;
|
||||||
|
|
||||||
unsigned int nr_running;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1469,7 +1467,6 @@ static void update_numa_stats(struct numa_stats *ns, int nid)
|
||||||
for_each_cpu(cpu, cpumask_of_node(nid)) {
|
for_each_cpu(cpu, cpumask_of_node(nid)) {
|
||||||
struct rq *rq = cpu_rq(cpu);
|
struct rq *rq = cpu_rq(cpu);
|
||||||
|
|
||||||
ns->nr_running += rq->nr_running;
|
|
||||||
ns->load += weighted_cpuload(rq);
|
ns->load += weighted_cpuload(rq);
|
||||||
ns->compute_capacity += capacity_of(cpu);
|
ns->compute_capacity += capacity_of(cpu);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче