Lines Matching refs:shard_id
8260 static int __init llc_shard_size(int shard_id, int cores_per_shard, int nr_large_shards)
8263 if (shard_id < nr_large_shards)
8293 * @shard_id: index of the shard being checked
8296 * Returns true if @cores_in_shard equals the expected size for @shard_id.
8298 static bool __init llc_shard_is_full(int cores_in_shard, int shard_id,
8301 return cores_in_shard == llc_shard_size(shard_id, layout->cores_per_shard,
8320 /* Count the number of cores in the current shard_id */
8324 int shard_id = 0;
8332 if (llc_shard_is_full(cores_in_shard, shard_id, &layout)) {
8333 shard_id++;
8337 cpu_shard_id[c] = shard_id;
8357 WARN_ON_ONCE(shard_id != (layout.nr_shards - 1));