Home
last modified time | relevance | path

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

123

/Linux-v5.10/drivers/infiniband/hw/hfi1/
Daffinity.c147 possible = cpumask_weight(&node_affinity.real_cpu_mask); in init_real_cpu_mask()
148 ht = cpumask_weight(topology_sibling_cpumask( in init_real_cpu_mask()
179 cpumask_weight(topology_sibling_cpumask( in node_affinity_init()
551 if (cpumask_weight(&entry->comp_vect_mask) == 1) { in _dev_comp_vect_cpu_mask_init()
557 cpumask_weight(&entry->comp_vect_mask) / in _dev_comp_vect_cpu_mask_init()
566 cpumask_weight(&entry->comp_vect_mask) % in _dev_comp_vect_cpu_mask_init()
681 possible = cpumask_weight(&entry->def_intr.mask); in hfi1_dev_affinity_init()
722 if (cpumask_weight(&entry->def_intr.mask) == 0) in hfi1_dev_affinity_init()
742 if (cpumask_weight(&entry->comp_vect_mask) == 0) in hfi1_dev_affinity_init()
1027 possible = cpumask_weight(hw_thread_mask); in find_hw_thread_mask()
[all …]
/Linux-v5.10/kernel/irq/
Daffinity.c146 ncpus = cpumask_weight(nmsk); in alloc_nodes_vectors()
261 if (!cpumask_weight(cpu_mask)) in __irq_build_affinity_masks()
299 ncpus = cpumask_weight(nmsk); in __irq_build_affinity_masks()
509 set_vecs = cpumask_weight(cpu_possible_mask); in irq_calc_affinity_vectors()
Dipi.c40 nr_irqs = cpumask_weight(dest); in irq_reserve_ipi()
143 nr_irqs = cpumask_weight(dest); in irq_destroy_ipi()
/Linux-v5.10/arch/x86/include/asm/trace/
Dhyperv.h21 TP_fast_assign(__entry->ncpus = cpumask_weight(cpus);
67 TP_fast_assign(__entry->ncpus = cpumask_weight(cpus);
/Linux-v5.10/include/linux/
Dcpumask.h114 #define num_possible_cpus() cpumask_weight(cpu_possible_mask)
115 #define num_present_cpus() cpumask_weight(cpu_present_mask)
116 #define num_active_cpus() cpumask_weight(cpu_active_mask)
561 static inline unsigned int cpumask_weight(const struct cpumask *srcp) in cpumask_weight() function
Dtopology.h39 #define nr_cpus_node(node) cpumask_weight(cpumask_of_node(node))
/Linux-v5.10/arch/mips/kernel/
Dcrash.c75 while ((cpumask_weight(&cpus_in_crash) < ncpus) && (--msecs > 0)) { in crash_kexec_prepare_cpus()
/Linux-v5.10/drivers/thermal/
Dcpufreq_cooling.c217 u32 ncpus = cpumask_weight(policy->related_cpus); in cpufreq_get_requested_power()
275 num_cpus = cpumask_weight(cpufreq_cdev->policy->cpus); in cpufreq_state2power()
519 num_cpus = cpumask_weight(policy->related_cpus); in __cpufreq_cooling_register()
/Linux-v5.10/arch/ia64/include/asm/
Dacpi.h88 low_cpu = cpumask_weight(&early_cpu_possible_map); in per_cpu_scan_finalize()
/Linux-v5.10/arch/x86/platform/uv/
Duv_nmi.c626 k = n - cpumask_weight(uv_nmi_cpu_mask); in uv_nmi_wait_cpus()
684 cpumask_weight(uv_nmi_cpu_mask), in uv_nmi_wait()
694 cpumask_weight(uv_nmi_cpu_mask), in uv_nmi_wait()
988 if (cpumask_weight(uv_nmi_cpu_mask)) in uv_handle_nmi()
/Linux-v5.10/arch/powerpc/kernel/
Dwatchdog.c158 if (cpumask_weight(&wd_smp_cpus_pending) == 0) in watchdog_smp_panic()
345 if (cpumask_weight(&wd_cpus_enabled) == 1) { in start_watchdog()
/Linux-v5.10/kernel/sched/
Dtopology.c77 if (!cpumask_weight(sched_group_span(group))) { in sched_domain_debug_one()
172 if (cpumask_weight(sched_domain_span(sd)) == 1) in sd_degenerate()
349 int i, nr_pd = 0, nr_ps = 0, nr_cpus = cpumask_weight(cpu_map); in build_perf_domains()
649 size = cpumask_weight(sched_domain_span(sd)); in update_top_cache_domain()
933 sg->sgc->capacity = SCHED_CAPACITY_SCALE * cpumask_weight(sg_span); in init_overlap_sched_group()
1099 sg->sgc->capacity = SCHED_CAPACITY_SCALE * cpumask_weight(sched_group_span(sg)); in get_group()
1168 sg->group_weight = cpumask_weight(sched_group_span(sg)); in init_sched_groups_capacity()
1337 sd_weight = cpumask_weight(tl->mask(cpu)); in sd_init()
2030 sd->span_weight = cpumask_weight(sched_domain_span(sd)); in build_sched_domains()
/Linux-v5.10/drivers/infiniband/sw/siw/
Dsiw_main.c97 if (cpu % cpumask_weight(topology_sibling_cpumask(cpu))) in siw_create_tx_threads()
197 num_cpus = cpumask_weight(tx_cpumask); in siw_get_tx_cpu()
201 num_cpus = cpumask_weight(tx_cpumask); in siw_get_tx_cpu()
/Linux-v5.10/lib/
Dcpumask.c215 i %= cpumask_weight(mask); in cpumask_local_spread()
/Linux-v5.10/arch/ia64/kernel/
Dsetup.c579 per_cpu_scan_finalize((cpumask_weight(&early_cpu_possible_map) == 0 ? in setup_arch()
580 32 : cpumask_weight(&early_cpu_possible_map)), in setup_arch()
724 cpumask_weight(&cpu_core_map[cpunum])); in show_cpuinfo()
/Linux-v5.10/arch/x86/kernel/cpu/
Dproc.c23 cpumask_weight(topology_core_cpumask(cpu))); in show_cpuinfo_core()
/Linux-v5.10/drivers/net/wireguard/
Dqueueing.h112 cpu_index = id % cpumask_weight(cpu_online_mask); in wg_cpumask_choose_online()
/Linux-v5.10/arch/x86/kernel/
Dsmpboot.c610 if (cpumask_weight( in set_cpu_sibling_map()
635 threads = cpumask_weight(topology_sibling_cpumask(cpu)); in set_cpu_sibling_map()
1527 int threads = cpumask_weight(topology_sibling_cpumask(cpu)); in recompute_smt_state()
1545 if (cpumask_weight(topology_sibling_cpumask(cpu)) == 1) in remove_siblinginfo()
Dtsc_sync.c302 return (cpumask_weight(topology_core_cpumask(cpu)) > 1) ? 2 : 20; in loop_timeout()
/Linux-v5.10/arch/s390/kernel/
Dprocessor.c163 seq_printf(m, "siblings : %d\n", cpumask_weight(topology_core_cpumask(n))); in show_cpu_topology()
/Linux-v5.10/arch/x86/kernel/cpu/resctrl/
Drdtgroup.c341 if (cpumask_weight(tmpmask)) { in cpus_mon_write()
348 if (cpumask_weight(tmpmask)) { in cpus_mon_write()
359 if (cpumask_weight(tmpmask)) { in cpus_mon_write()
394 if (cpumask_weight(tmpmask)) { in cpus_ctrl_write()
413 if (cpumask_weight(tmpmask)) { in cpus_ctrl_write()
418 if (cpumask_weight(tmpmask1)) in cpus_ctrl_write()
488 if (cpumask_weight(tmpmask)) { in rdtgroup_cpus_write()
/Linux-v5.10/arch/alpha/kernel/
Dprocess.c128 while (cpumask_weight(cpu_present_mask)) in common_shutdown_1()
/Linux-v5.10/kernel/
Dpadata.c80 int cpu_index = seq_nr % cpumask_weight(pd->cpumask.pcpu); in padata_cpu_hash()
197 if (!cpumask_weight(pd->cpumask.cbcpu)) in padata_do_parallel()
201 cpu_index = *cb_cpu % cpumask_weight(pd->cpumask.cbcpu); in padata_do_parallel()
/Linux-v5.10/drivers/firmware/psci/
Dpsci_checker.c93 if (cpumask_weight(offlined_cpus) + 1 == nb_available_cpus) { in down_and_up_cpus()
/Linux-v5.10/arch/parisc/kernel/
Dprocessor.c398 cpumask_weight(topology_core_cpumask(cpu))); in show_cpuinfo()

123