File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1450,14 +1450,12 @@ static unsigned long capacity_of(int cpu);
14501450
14511451/* Cached statistics for all CPUs within a node */
14521452struct numa_stats {
1453- unsigned long nr_running ;
14541453 unsigned long load ;
14551454
14561455 /* Total compute capacity of CPUs on a node */
14571456 unsigned long compute_capacity ;
14581457
1459- /* Approximate capacity in terms of runnable tasks on a node */
1460- unsigned long task_capacity ;
1458+ unsigned int nr_running ;
14611459 int has_free_capacity ;
14621460};
14631461
@@ -1495,9 +1493,9 @@ static void update_numa_stats(struct numa_stats *ns, int nid)
14951493 smt = DIV_ROUND_UP (SCHED_CAPACITY_SCALE * cpus , ns -> compute_capacity );
14961494 capacity = cpus / smt ; /* cores */
14971495
1498- ns -> task_capacity = min_t (unsigned , capacity ,
1496+ capacity = min_t (unsigned , capacity ,
14991497 DIV_ROUND_CLOSEST (ns -> compute_capacity , SCHED_CAPACITY_SCALE ));
1500- ns -> has_free_capacity = (ns -> nr_running < ns -> task_capacity );
1498+ ns -> has_free_capacity = (ns -> nr_running < capacity );
15011499}
15021500
15031501struct task_numa_env {
You can’t perform that action at this time.
0 commit comments