Searched refs:cpumask_weight (Results 1 - 25 of 70) sorted by relevance
123
/linux-master/lib/ |
H A D | cpumask_kunit.c | 13 "%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 D | group_cpus.c | 148 ncpus = cpumask_weight(nmsk); 298 ncpus = cpumask_weight(nmsk);
|
/linux-master/arch/x86/include/asm/trace/ |
H A D | hyperv.h | 21 TP_fast_assign(__entry->ncpus = cpumask_weight(cpus); 67 TP_fast_assign(__entry->ncpus = cpumask_weight(cpus);
|
/linux-master/arch/mips/kernel/ |
H A D | crash.c | 75 while ((cpumask_weight(&cpus_in_crash) < ncpus) && (--msecs > 0)) {
|
/linux-master/drivers/thermal/intel/ |
H A D | intel_hfi.c | 208 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 D | affinity.c | 123 set_vecs = cpumask_weight(cpu_possible_mask);
|
H A D | ipi.c | 40 nr_irqs = cpumask_weight(dest); 144 nr_irqs = cpumask_weight(dest);
|
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | affinity.c | 105 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 D | dtpm_cpu.c | 52 nr_cpus = cpumask_weight(&cpus); 130 nr_cpus = cpumask_weight(&cpus);
|
/linux-master/include/linux/ |
H A D | topology.h | 39 #define nr_cpus_node(node) cpumask_weight(cpumask_of_node(node))
|
H A D | cpumask.h | 700 * 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 D | irq_affinity.c | 58 if (cpumask_weight(&af_desc->mask) > 1)
|
/linux-master/arch/riscv/kernel/ |
H A D | unaligned_access_speed.c | 134 if (cpumask_weight(mask) == weight)
|
/linux-master/arch/x86/platform/uv/ |
H A D | uv_nmi.c | 629 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 D | stop_machine.c | 428 cpu_stop_init_done(&done, cpumask_weight(cpumask)); 642 .num_threads = cpumask_weight(smt_mask),
|
/linux-master/arch/x86/kernel/cpu/microcode/ |
H A D | core.c | 453 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 D | siw_main.c | 171 num_cpus = cpumask_weight(tx_cpumask); 175 num_cpus = cpumask_weight(tx_cpumask);
|
/linux-master/kernel/sched/ |
H A D | topology.c | 173 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 D | cpufreq_cooling.c | 287 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 D | machine_kexec.c | 219 while ((cpumask_weight(&cpus_in_crash) < ncpus) && timeout--) {
|
/linux-master/drivers/net/wireguard/ |
H A D | queueing.h | 111 cpu_index = id % cpumask_weight(cpu_online_mask);
|
/linux-master/arch/x86/kernel/ |
H A D | tsc_sync.c | 343 return (cpumask_weight(topology_core_cpumask(cpu)) > 1) ? 2 : 20;
|
/linux-master/arch/x86/kernel/cpu/ |
H A D | proc.c | 25 cpumask_weight(topology_core_cpumask(cpu)));
|
/linux-master/arch/s390/kernel/ |
H A D | processor.c | 291 seq_printf(m, "siblings : %d\n", cpumask_weight(topology_core_cpumask(n)));
|
/linux-master/kernel/bpf/ |
H A D | cpumask.c | 422 return cpumask_weight(cpumask);
|
Completed in 440 milliseconds
123