Lines Matching refs:nr_cores
8242 int nr_cores = 0, c;
8251 nr_cores++;
8254 return nr_cores;
8276 * @nr_cores: number of distinct cores in the LLC pod
8282 static struct llc_shard_layout __init llc_calc_shard_layout(int nr_cores)
8287 layout.nr_shards = max(1, DIV_ROUND_CLOSEST(nr_cores, wq_cache_shard_size));
8288 layout.cores_per_shard = nr_cores / layout.nr_shards;
8289 layout.nr_large_shards = nr_cores % layout.nr_shards;
8313 * @nr_cores: number of distinct cores in @pod_cpus (from llc_count_cores())
8320 int nr_cores)
8322 struct llc_shard_layout layout = llc_calc_shard_layout(nr_cores);
8376 int nr_cores;
8388 nr_cores = llc_count_cores(cpus_sharing_llc, smt_pods);
8389 llc_populate_cpu_shard_id(cpus_sharing_llc, smt_pods, nr_cores);