Home
last modified time | relevance | path

Searched refs:cpumask_weight (Results 1 – 25 of 38) sorted by relevance

12

/linux/arch/x86/include/asm/trace/
H A Dhyperv.h21 TP_fast_assign(__entry->ncpus = cpumask_weight(cpus);
67 TP_fast_assign(__entry->ncpus = cpumask_weight(cpus);
/linux/lib/
H A Dgroup_cpus.c246 ncpus = cpumask_weight(nmsk); in alloc_nodes_groups()
311 if (!cpumask_weight(cluster_mask)) in alloc_cluster_groups()
387 nc = cpumask_weight(nmsk); in __try_group_cluster_cpus()
451 ncpus = cpumask_weight(nmsk); in __group_cpus_evenly()
/linux/drivers/infiniband/hw/hfi1/
H A Daffinity.c103 possible = cpumask_weight(&node_affinity.real_cpu_mask); in init_real_cpu_mask()
104 ht = cpumask_weight(topology_sibling_cpumask( in init_real_cpu_mask()
128 cpumask_weight(topology_sibling_cpumask( in node_affinity_init()
500 if (cpumask_weight(&entry->comp_vect_mask) == 1) { in _dev_comp_vect_cpu_mask_init()
506 cpumask_weight(&entry->comp_vect_mask) / in _dev_comp_vect_cpu_mask_init()
515 cpumask_weight(&entry->comp_vect_mask) % in _dev_comp_vect_cpu_mask_init()
619 possible = cpumask_weight(&entry->def_intr.mask); in hfi1_dev_affinity_init()
1001 } else if (current->nr_cpus_allowed < cpumask_weight(&set->mask)) { in hfi1_get_proc_affinity()
/linux/arch/mips/kernel/
H A Dcrash.c75 while ((cpumask_weight(&cpus_in_crash) < ncpus) && (--msecs > 0)) { in crash_kexec_prepare_cpus()
/linux/kernel/irq/
H A Dipi.c40 nr_irqs = cpumask_weight(dest); in irq_reserve_ipi()
144 nr_irqs = cpumask_weight(dest); in irq_destroy_ipi()
/linux/rust/helpers/
H A Dcpumask.c56 return cpumask_weight(srcp); in rust_helper_alloc_cpumask_var()
/linux/block/
H A Dblk-mq-cpumap.c25 num = cpumask_weight(mask); in blk_mq_num_queues()
/linux/include/linux/
H A Dcpumask.h869 static __always_inline unsigned int cpumask_weight(const struct cpumask *srcp) in cpumask_weight() function
1226 #define num_enabled_cpus() cpumask_weight(cpu_enabled_mask)
1227 #define num_present_cpus() cpumask_weight(cpu_present_mask)
1228 #define num_active_cpus() cpumask_weight(cpu_active_mask)
/linux/drivers/infiniband/sw/siw/
H A Dsiw_main.c170 num_cpus = cpumask_weight(tx_cpumask); in siw_get_tx_cpu()
174 num_cpus = cpumask_weight(tx_cpumask); in siw_get_tx_cpu()
/linux/lib/tests/
H A Dtest_ratelimit.c103 const int n_stress_kthread = cpumask_weight(cpu_online_mask); in test_ratelimit_stress()
/linux/kernel/sched/
H A Dtopology.c175 if (cpumask_weight(sched_domain_span(sd)) == 1) in sd_degenerate()
698 size = cpumask_weight(sched_domain_span(sd)); in update_top_cache_domain()
884 hw_weight = cpumask_weight(&ci->shared_cpu_map); in get_effective_llc_bytes()
1285 sg->sgc->capacity = SCHED_CAPACITY_SCALE * cpumask_weight(sg_span); in init_overlap_sched_group()
1512 sg->sgc->capacity = SCHED_CAPACITY_SCALE * cpumask_weight(sched_group_span(sg)); in get_group()
1582 sg->group_weight = cpumask_weight(sched_group_span(sg)); in init_sched_groups_capacity()
1945 sd_weight = cpumask_weight(sd_span); in sd_init()
2484 if (cpumask_weight(cpumask_of_node(node)) != 1) in sched_update_numa()
3144 sd->span_weight = cpumask_weight(sched_domain_span(sd)); in build_sched_domains()
H A Ddeadline.c704 __dl_sub(dl_b, p->dl.dl_bw, cpumask_weight(rq->rd->span)); in dl_task_offline_migration()
709 __dl_add(dl_b, p->dl.dl_bw, cpumask_weight(later_rq->rd->span)); in dl_task_offline_migration()
3446 __dl_add(dl_b, p->dl.dl_bw, cpumask_weight(rq->rd->span)); in dl_add_task_root_domain()
/linux/arch/loongarch/kernel/
H A Dmachine_kexec.c210 while ((cpumask_weight(&cpus_in_crash) < ncpus) && timeout--) { in crash_smp_send_stop()
/linux/drivers/firmware/psci/
H A Dpsci_checker.c93 if (cpumask_weight(offlined_cpus) + 1 == nb_available_cpus) { in down_and_up_cpus()
/linux/kernel/bpf/
H A Dcpumask.c440 return cpumask_weight(cpumask); in bpf_cpumask_weight()
/linux/kernel/power/
H A Dem_netlink.c33 nr_cpus = cpumask_weight(to_cpumask(pd->cpus)); in __em_nl_get_pd_size()
H A Denergy_model.c428 num_cpus = cpumask_weight(cpus); in em_create_pd()
/linux/arch/parisc/kernel/
H A Dprocessor.c412 cpumask_weight(topology_core_cpumask(cpu))); in show_cpuinfo()
/linux/drivers/soc/fsl/qbman/
H A Dqman_test_stash.c562 if (cpumask_weight(cpu_online_mask) < 2) { in qman_test_stash()
/linux/arch/sparc/kernel/
H A Dds.c540 ncpus = cpumask_weight(mask); in dr_cpu_configure()
599 ncpus = cpumask_weight(mask); in dr_cpu_unconfigure()
/linux/drivers/char/
H A Drandom.c1318 num_cpus = cpumask_weight(timer_cpus); in try_to_generate_entropy()
1322 num_cpus = cpumask_weight(timer_cpus); in try_to_generate_entropy()
/linux/kernel/time/
H A Dclockevents.c700 cpumask_weight(dev->cpumask) == 1 && in tick_offline_cpu()
/linux/drivers/crypto/caam/
H A Dqi.c665 const u64 val = (u64)cpumask_weight(qman_affine_cpus()) * in init_cgr()
/linux/arch/mips/cavium-octeon/
H A Docteon-irq.c277 int weight = cpumask_weight(mask); in next_cpu_for_irq()
776 if (cpumask_weight(mask) > 1) { in octeon_irq_cpu_offline_ciu()
808 if (cpumask_weight(dest) != 1) in octeon_irq_ciu_set_affinity()
/linux/kernel/sched/ext/
H A Dcid.c289 cids_in_core = cpumask_weight(core_scratch); in scx_cid_init()

12