Lines Matching defs:ns
2028 struct numa_stats *ns)
2030 if ((ns->nr_running > ns->weight) &&
2031 (((ns->compute_capacity * 100) < (ns->util * imbalance_pct)) ||
2032 ((ns->compute_capacity * imbalance_pct) < (ns->runnable * 100))))
2035 if ((ns->nr_running < ns->weight) ||
2036 (((ns->compute_capacity * 100) > (ns->util * imbalance_pct)) &&
2037 ((ns->compute_capacity * imbalance_pct) > (ns->runnable * 100))))
2075 struct numa_stats *ns, int nid,
2080 memset(ns, 0, sizeof(*ns));
2081 ns->idle_cpu = -1;
2087 ns->load += cpu_load(rq);
2088 ns->runnable += cpu_runnable(rq);
2089 ns->util += cpu_util_cfs(cpu);
2090 ns->nr_running += rq->cfs.h_nr_running;
2091 ns->compute_capacity += capacity_of(cpu);
2098 if (ns->idle_cpu == -1)
2099 ns->idle_cpu = cpu;
2106 ns->weight = cpumask_weight(cpumask_of_node(nid));
2108 ns->node_type = numa_classify(env->imbalance_pct, ns);
2111 ns->idle_cpu = idle_core;
5782 * for 1ns of runtime rather than just check cfs_b.