Searched refs:nr_shards (Results 1 – 3 of 3) sorted by relevance
| /linux/kernel/sched/ext/ |
| H A D | cid.c | 61 u32 nr_cores = 0, nr_cpus = 0, nr_shards; in calc_shard_layout() local 70 nr_shards = max_t(u32, 1, DIV_ROUND_UP(nr_cpus, shard_size)); in calc_shard_layout() 71 nr_shards = max_t(u32, nr_shards, in calc_shard_layout() 74 *cores_per_shard_p = nr_cores / nr_shards; in calc_shard_layout() 75 *nr_large_p = nr_cores % nr_shards; in calc_shard_layout() 132 scx_nr_cid_shards = tbls->nr_shards; in scx_cid_publish_tables() 384 tbls->nr_shards = next_shard_idx; in scx_cid_init() 478 u32 nr_shards = shard_start_cnt; in scx_bpf_cid_override() local 497 if (nr_shards && nr_shards <= npossible) in scx_bpf_cid_override() 498 shard_start = kmemdup(shard_start__arena, nr_shards * sizeof(s32), in scx_bpf_cid_override() [all …]
|
| H A D | cid.h | 52 u32 nr_shards; member
|
| /linux/kernel/ |
| H A D | workqueue.c | 138 int nr_shards; /* total number of shards */ member 8467 layout.nr_shards = max(1, DIV_ROUND_CLOSEST(nr_cores, wq_cache_shard_size)); in llc_calc_shard_layout() 8468 layout.cores_per_shard = nr_cores / layout.nr_shards; in llc_calc_shard_layout() 8469 layout.nr_large_shards = nr_cores % layout.nr_shards; in llc_calc_shard_layout() 8541 WARN_ON_ONCE(shard_id != (layout.nr_shards - 1)); in llc_populate_cpu_shard_id()
|