/linux/drivers/infiniband/hw/hfi1/ |
A D | affinity.c | 106 possible = cpumask_weight(&node_affinity.real_cpu_mask); in init_real_cpu_mask() 107 ht = cpumask_weight(topology_sibling_cpumask( in init_real_cpu_mask() 138 cpumask_weight(topology_sibling_cpumask( in node_affinity_init() 510 if (cpumask_weight(&entry->comp_vect_mask) == 1) { in _dev_comp_vect_cpu_mask_init() 516 cpumask_weight(&entry->comp_vect_mask) / in _dev_comp_vect_cpu_mask_init() 525 cpumask_weight(&entry->comp_vect_mask) % in _dev_comp_vect_cpu_mask_init() 629 possible = cpumask_weight(&entry->def_intr.mask); in hfi1_dev_affinity_init() 670 if (cpumask_weight(&entry->def_intr.mask) == 0) in hfi1_dev_affinity_init() 690 if (cpumask_weight(&entry->comp_vect_mask) == 0) in hfi1_dev_affinity_init() 975 possible = cpumask_weight(hw_thread_mask); in find_hw_thread_mask() [all …]
|
/linux/kernel/irq/ |
A D | affinity.c | 146 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()
|
A D | ipi.c | 40 nr_irqs = cpumask_weight(dest); in irq_reserve_ipi() 143 nr_irqs = cpumask_weight(dest); in irq_destroy_ipi()
|
/linux/arch/x86/include/asm/trace/ |
A D | hyperv.h | 21 TP_fast_assign(__entry->ncpus = cpumask_weight(cpus); 67 TP_fast_assign(__entry->ncpus = cpumask_weight(cpus);
|
/linux/include/linux/ |
A D | cpumask.h | 538 static inline unsigned int cpumask_weight(const struct cpumask *srcp) in cpumask_weight() function 889 #define num_possible_cpus() cpumask_weight(cpu_possible_mask) 890 #define num_present_cpus() cpumask_weight(cpu_present_mask) 891 #define num_active_cpus() cpumask_weight(cpu_active_mask)
|
A D | topology.h | 39 #define nr_cpus_node(node) cpumask_weight(cpumask_of_node(node))
|
/linux/drivers/powercap/ |
A D | dtpm_cpu.c | 51 nr_cpus = cpumask_weight(&cpus); in set_pd_power_limit() 137 nr_cpus = cpumask_weight(&cpus); in update_pd_power_uw()
|
/linux/drivers/thermal/ |
A D | cpufreq_cooling.c | 222 u32 ncpus = cpumask_weight(policy->related_cpus); in cpufreq_get_requested_power() 280 num_cpus = cpumask_weight(cpufreq_cdev->policy->cpus); in cpufreq_state2power() 366 unsigned int num_cpus = cpumask_weight(cpufreq_cdev->policy->related_cpus); in allocate_idle_time()
|
/linux/arch/x86/platform/uv/ |
A D | uv_nmi.c | 629 k = n - cpumask_weight(uv_nmi_cpu_mask); in uv_nmi_wait_cpus() 687 cpumask_weight(uv_nmi_cpu_mask), in uv_nmi_wait() 697 cpumask_weight(uv_nmi_cpu_mask), in uv_nmi_wait() 988 if (cpumask_weight(uv_nmi_cpu_mask)) in uv_handle_nmi()
|
/linux/drivers/infiniband/sw/siw/ |
A D | siw_main.c | 97 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/arch/mips/kernel/ |
A D | crash.c | 75 while ((cpumask_weight(&cpus_in_crash) < ncpus) && (--msecs > 0)) { in crash_kexec_prepare_cpus()
|
/linux/arch/powerpc/kernel/ |
A D | watchdog.c | 161 if (cpumask_weight(&wd_smp_cpus_pending) == 0) in watchdog_smp_panic() 349 if (cpumask_weight(&wd_cpus_enabled) == 1) { in start_watchdog()
|
/linux/kernel/sched/ |
A D | topology.c | 77 if (!cpumask_weight(sched_group_span(group))) { in sched_domain_debug_one() 172 if (cpumask_weight(sched_domain_span(sd)) == 1) in sd_degenerate() 354 int i, nr_pd = 0, nr_ps = 0, nr_cpus = cpumask_weight(cpu_map); in build_perf_domains() 663 size = cpumask_weight(sched_domain_span(sd)); in update_top_cache_domain() 961 sg->sgc->capacity = SCHED_CAPACITY_SCALE * cpumask_weight(sg_span); in init_overlap_sched_group() 1188 sg->sgc->capacity = SCHED_CAPACITY_SCALE * cpumask_weight(sched_group_span(sg)); in get_group() 1257 sg->group_weight = cpumask_weight(sched_group_span(sg)); in init_sched_groups_capacity() 1538 sd_weight = cpumask_weight(tl->mask(cpu)); in sd_init() 2234 sd->span_weight = cpumask_weight(sched_domain_span(sd)); in build_sched_domains()
|
/linux/arch/ia64/include/asm/ |
A D | acpi.h | 88 low_cpu = cpumask_weight(&early_cpu_possible_map); in per_cpu_scan_finalize()
|
/linux/arch/ia64/kernel/ |
A D | setup.c | 578 per_cpu_scan_finalize((cpumask_weight(&early_cpu_possible_map) == 0 ? in setup_arch() 579 32 : cpumask_weight(&early_cpu_possible_map)), in setup_arch() 723 cpumask_weight(&cpu_core_map[cpunum])); in show_cpuinfo()
|
/linux/arch/x86/kernel/cpu/ |
A D | proc.c | 23 cpumask_weight(topology_core_cpumask(cpu))); in show_cpuinfo_core()
|
/linux/arch/x86/kernel/ |
A D | smpboot.c | 653 threads = cpumask_weight(topology_sibling_cpumask(cpu)); in set_cpu_sibling_map() 1593 int threads = cpumask_weight(topology_sibling_cpumask(cpu)); in recompute_smt_state() 1611 if (cpumask_weight(topology_sibling_cpumask(cpu)) == 1) in remove_siblinginfo() 1620 if (cpumask_weight(topology_sibling_cpumask(sibling)) == 1) in remove_siblinginfo()
|
A D | tsc_sync.c | 343 return (cpumask_weight(topology_core_cpumask(cpu)) > 1) ? 2 : 20; in loop_timeout()
|
/linux/arch/x86/kernel/cpu/resctrl/ |
A D | rdtgroup.c | 344 if (cpumask_weight(tmpmask)) { in cpus_mon_write() 351 if (cpumask_weight(tmpmask)) { in cpus_mon_write() 362 if (cpumask_weight(tmpmask)) { in cpus_mon_write() 397 if (cpumask_weight(tmpmask)) { in cpus_ctrl_write() 416 if (cpumask_weight(tmpmask)) { in cpus_ctrl_write() 421 if (cpumask_weight(tmpmask1)) in cpus_ctrl_write() 491 if (cpumask_weight(tmpmask)) { in rdtgroup_cpus_write()
|
/linux/arch/x86/hyperv/ |
A D | hv_apic.c | 165 weight = cpumask_weight(mask); in __send_ipi_mask()
|
/linux/drivers/net/wireguard/ |
A D | queueing.h | 113 cpu_index = id % cpumask_weight(cpu_online_mask); in wg_cpumask_choose_online()
|
/linux/kernel/ |
A D | padata.c | 67 int cpu_index = seq_nr % cpumask_weight(pd->cpumask.pcpu); in padata_cpu_hash() 184 if (!cpumask_weight(pd->cpumask.cbcpu)) in padata_do_parallel() 188 cpu_index = *cb_cpu % cpumask_weight(pd->cpumask.cbcpu); in padata_do_parallel()
|
/linux/drivers/cpufreq/ |
A D | scmi-cpufreq.c | 157 if (ret || !cpumask_weight(priv->opp_shared_cpus)) { in scmi_cpufreq_init()
|
/linux/arch/alpha/kernel/ |
A D | process.c | 128 while (cpumask_weight(cpu_present_mask)) in common_shutdown_1()
|
/linux/arch/s390/kernel/ |
A D | processor.c | 316 seq_printf(m, "siblings : %d\n", cpumask_weight(topology_core_cpumask(n))); in show_cpu_topology()
|