Home
last modified time | relevance | path

Searched refs:npossible (Results 1 – 2 of 2) sorted by relevance

/linux/kernel/sched/ext/
H A Dcid.c98 u32 npossible = num_possible_cpus(); in scx_cid_alloc_tables() local
105 tbls->cid_to_cpu = kvcalloc(npossible, sizeof(*tbls->cid_to_cpu), GFP_KERNEL); in scx_cid_alloc_tables()
107 tbls->cid_to_shard = kvcalloc(npossible, sizeof(*tbls->cid_to_shard), GFP_KERNEL); in scx_cid_alloc_tables()
108 tbls->shard_node = kvcalloc(npossible, sizeof(*tbls->shard_node), GFP_KERNEL); in scx_cid_alloc_tables()
109 tbls->shard_ranges = kvcalloc(npossible, sizeof(*tbls->shard_ranges), GFP_KERNEL); in scx_cid_alloc_tables()
110 tbls->topo = kvcalloc(npossible, sizeof(*tbls->topo), GFP_KERNEL); in scx_cid_alloc_tables()
475 u32 npossible = num_possible_cpus(); in scx_bpf_cid_override() local
497 if (nr_shards && nr_shards <= npossible) in scx_bpf_cid_override()
517 if (!nr_shards || nr_shards > npossible) { in scx_bpf_cid_override()
540 if (shard_start[si] >= npossible) { in scx_bpf_cid_override()
[all …]
H A Dext.c5448 u32 npossible = num_possible_cpus(); in scx_attr_caps_show() local
5450 kzalloc(struct_size(agg, bits, SCX_CMASK_NR_WORDS(npossible)), GFP_KERNEL); in scx_attr_caps_show()
5451 unsigned long *agg_bm __free(bitmap) = bitmap_zalloc(npossible, GFP_KERNEL); in scx_attr_caps_show()
5461 scx_cmask_init(agg, 0, npossible); in scx_attr_caps_show()
5470 bitmap_from_arr64(agg_bm, agg->bits, npossible); in scx_attr_caps_show()
5472 scx_cap_names[cap], npossible, agg_bm); in scx_attr_caps_show()