Searched refs:cpumask_weight (Results 1 - 25 of 70) sorted by relevance

123

/linux-master/lib/
H A Dcpumask_kunit.c13 "%s contains %sCPUs %*pbl", #m, (cpumask_weight(m) ? "" : "no "), \
19 int mask_weight = cpumask_weight(m); \
33 weight = cpumask_weight(&mask_tmp); \
42 int mask_weight = cpumask_weight(m); \
67 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_weight(&mask_empty), MASK_MSG(&mask_empty));
68 KUNIT_EXPECT_EQ_MSG(test, nr_cpu_ids, cpumask_weight(cpu_possible_mask),
70 KUNIT_EXPECT_EQ_MSG(test, nr_cpu_ids, cpumask_weight(&mask_all), MASK_MSG(&mask_all));
H A Dgroup_cpus.c148 ncpus = cpumask_weight(nmsk);
298 ncpus = cpumask_weight(nmsk);
/linux-master/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-master/arch/mips/kernel/
H A Dcrash.c75 while ((cpumask_weight(&cpus_in_crash) < ncpus) && (--msecs > 0)) {
/linux-master/drivers/thermal/intel/
H A Dintel_hfi.c208 cpu_count = cpumask_weight(hfi_instance->cpus);
481 if (cpumask_weight(hfi_instance->cpus) == 1) {
525 if (!cpumask_weight(hfi_instance->cpus))
/linux-master/kernel/irq/
H A Daffinity.c123 set_vecs = cpumask_weight(cpu_possible_mask);
H A Dipi.c40 nr_irqs = cpumask_weight(dest);
144 nr_irqs = cpumask_weight(dest);
/linux-master/drivers/infiniband/hw/hfi1/
H A Daffinity.c105 possible = cpumask_weight(&node_affinity.real_cpu_mask);
106 ht = cpumask_weight(topology_sibling_cpumask(
137 cpumask_weight(topology_sibling_cpumask(
509 if (cpumask_weight(&entry->comp_vect_mask) == 1) {
515 cpumask_weight(&entry->comp_vect_mask) /
524 cpumask_weight(&entry->comp_vect_mask) %
628 possible = cpumask_weight(&entry->def_intr.mask);
974 possible = cpumask_weight(hw_thread_mask);
1019 } else if (current->nr_cpus_allowed < cpumask_weight(&set->mask)) {
/linux-master/drivers/powercap/
H A Ddtpm_cpu.c52 nr_cpus = cpumask_weight(&cpus);
130 nr_cpus = cpumask_weight(&cpus);
/linux-master/include/linux/
H A Dtopology.h39 #define nr_cpus_node(node) cpumask_weight(cpumask_of_node(node))
H A Dcpumask.h700 * cpumask_weight - Count of bits in *srcp
705 static inline unsigned int cpumask_weight(const struct cpumask *srcp) function
1114 #define num_possible_cpus() cpumask_weight(cpu_possible_mask)
1115 #define num_present_cpus() cpumask_weight(cpu_present_mask)
1116 #define num_active_cpus() cpumask_weight(cpu_active_mask)
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Dirq_affinity.c58 if (cpumask_weight(&af_desc->mask) > 1)
/linux-master/arch/riscv/kernel/
H A Dunaligned_access_speed.c134 if (cpumask_weight(mask) == weight)
/linux-master/arch/x86/platform/uv/
H A Duv_nmi.c629 k = n - cpumask_weight(uv_nmi_cpu_mask);
687 cpumask_weight(uv_nmi_cpu_mask),
697 cpumask_weight(uv_nmi_cpu_mask),
/linux-master/kernel/
H A Dstop_machine.c428 cpu_stop_init_done(&done, cpumask_weight(cpumask));
642 .num_threads = cpumask_weight(smt_mask),
/linux-master/arch/x86/kernel/cpu/microcode/
H A Dcore.c453 unsigned int nr_offl = cpumask_weight(&cpu_offline_mask);
586 nr_offl = cpumask_weight(&cpu_offline_mask);
/linux-master/drivers/infiniband/sw/siw/
H A Dsiw_main.c171 num_cpus = cpumask_weight(tx_cpumask);
175 num_cpus = cpumask_weight(tx_cpumask);
/linux-master/kernel/sched/
H A Dtopology.c173 if (cpumask_weight(sched_domain_span(sd)) == 1)
690 size = cpumask_weight(sched_domain_span(sd));
1003 sg->sgc->capacity = SCHED_CAPACITY_SCALE * cpumask_weight(sg_span);
1230 sg->sgc->capacity = SCHED_CAPACITY_SCALE * cpumask_weight(sched_group_span(sg));
1300 sg->group_weight = cpumask_weight(sched_group_span(sg));
1590 sd_weight = cpumask_weight(tl->mask(cpu));
2036 if (cpumask_weight(cpumask_of_node(node)) != 1)
2427 sd->span_weight = cpumask_weight(sched_domain_span(sd));
/linux-master/drivers/thermal/
H A Dcpufreq_cooling.c287 num_cpus = cpumask_weight(cpufreq_cdev->policy->cpus);
374 unsigned int num_cpus = cpumask_weight(cpufreq_cdev->policy->related_cpus);
/linux-master/arch/loongarch/kernel/
H A Dmachine_kexec.c219 while ((cpumask_weight(&cpus_in_crash) < ncpus) && timeout--) {
/linux-master/drivers/net/wireguard/
H A Dqueueing.h111 cpu_index = id % cpumask_weight(cpu_online_mask);
/linux-master/arch/x86/kernel/
H A Dtsc_sync.c343 return (cpumask_weight(topology_core_cpumask(cpu)) > 1) ? 2 : 20;
/linux-master/arch/x86/kernel/cpu/
H A Dproc.c25 cpumask_weight(topology_core_cpumask(cpu)));
/linux-master/arch/s390/kernel/
H A Dprocessor.c291 seq_printf(m, "siblings : %d\n", cpumask_weight(topology_core_cpumask(n)));
/linux-master/kernel/bpf/
H A Dcpumask.c422 return cpumask_weight(cpumask);

Completed in 440 milliseconds

123