Home
last modified time | relevance | path

Searched refs:num_possible_cpus (Results 1 – 25 of 160) sorted by relevance

1234567

/linux-6.6.21/drivers/irqchip/
Dirq-ompic.c165 if (resource_size(&res) < (num_possible_cpus() * OMPIC_CPUBYTES)) { in ompic_of_init()
168 (num_possible_cpus() * OMPIC_CPUBYTES)); in ompic_of_init()
/linux-6.6.21/drivers/clocksource/
Dingenic-timer.c289 tcu = kzalloc(struct_size(tcu, timers, num_possible_cpus()), in ingenic_tcu_init()
299 num_possible_cpus() + 1); in ingenic_tcu_init()
305 soc_info->num_channels - num_possible_cpus() + 1) { in ingenic_tcu_init()
316 for (cpu = 0; cpu < num_possible_cpus(); cpu++) { in ingenic_tcu_init()
/linux-6.6.21/arch/ia64/mm/
Dcontig.c83 size_t size = PERCPU_PAGE_SIZE * num_possible_cpus(); in alloc_per_cpu_data()
108 ai = pcpu_alloc_alloc_info(1, num_possible_cpus()); in setup_per_cpu_areas()
Dtlb.c205 need_ptcg_sem = num_possible_cpus() > nptcg; in setup_ptcg_sem()
224 need_ptcg_sem = (num_possible_cpus() > nptcg); in setup_ptcg_sem()
241 need_ptcg_sem = (num_possible_cpus() > nptcg); in setup_ptcg_sem()
/linux-6.6.21/drivers/nvdimm/
Dregion.c25 && nd_region->num_lanes < num_possible_cpus() in nd_region_probe()
29 num_possible_cpus()); in nd_region_probe()
/linux-6.6.21/drivers/cpufreq/
Darmada-8k-cpufreq.c104 int opps_index, nb_cpus = num_possible_cpus(); in armada_8k_cpufreq_free_table()
145 nb_cpus = num_possible_cpus(); in armada_8k_cpufreq_init()
/linux-6.6.21/arch/x86/kernel/
Di8253.c60 if (num_possible_cpus() > 1 || is_hpet_enabled() || in init_pit_clocksource()
Dkvmclock.c209 if (HVC_BOOT_ARRAY_SIZE >= num_possible_cpus()) in kvmclock_init_mem()
212 ncpus = num_possible_cpus() - HVC_BOOT_ARRAY_SIZE; in kvmclock_init_mem()
Dkvm.c480 (num_possible_cpus() != 1)); in pv_tlb_flush_supported()
486 (num_possible_cpus() != 1)); in pv_ipi_supported()
495 (num_possible_cpus() != 1)); in pv_sched_yield_supported()
1088 if (num_possible_cpus() == 1) { in kvm_spinlock_init()
/linux-6.6.21/arch/mips/kernel/
Di8253.c32 if (num_possible_cpus() > 1 || /* PIT does not scale! */ in init_pit_clocksource()
/linux-6.6.21/arch/sparc/kernel/
Dcpumap.c138 for (i = 0; i < num_possible_cpus(); i++) { in enumerate_cpuinfo_nodes()
233 for (last_cpu = (num_possible_cpus() - 1); last_cpu >= 0; last_cpu--) { in build_cpuinfo_tree()
381 for (i = 0; i < num_possible_cpus(); i++) { in simple_map_to_cpu()
/linux-6.6.21/drivers/ufs/core/
Dufs-mcq.c38 num_possible_cpus()); in rw_queue_count_set()
54 num_possible_cpus()); in read_queue_count_set()
70 num_possible_cpus()); in poll_queue_count_set()
175 rw_queues = num_possible_cpus(); in ufshcd_mcq_config_nr_queues()
190 num_possible_cpus()); in ufshcd_mcq_config_nr_queues()
/linux-6.6.21/arch/microblaze/include/asm/
Dfixmap.h50 FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * num_possible_cpus()) - 1,
/linux-6.6.21/arch/csky/mm/
Dcontext.c31 BUG_ON(((1 << CONFIG_CPU_ASID_BITS) - 1) <= num_possible_cpus()); in asids_init()
/linux-6.6.21/kernel/bpf/
Dpercpu_freelist.c105 n = nr_elems / num_possible_cpus(); in pcpu_freelist_populate()
106 m = nr_elems % num_possible_cpus(); in pcpu_freelist_populate()
/linux-6.6.21/samples/trace_events/
Dtrace-events-sample.h302 __bitmask( cpus, num_possible_cpus() )
314 __assign_bitmask(cpus, cpumask_bits(mask), num_possible_cpus());
/linux-6.6.21/drivers/thermal/
Dthermal_trace.h120 __bitmask(cpumask, num_possible_cpus())
128 num_possible_cpus());
/linux-6.6.21/lib/
Dbucket_locks.c23 unsigned int nr_pcpus = num_possible_cpus(); in __alloc_bucket_spinlocks()
/linux-6.6.21/drivers/platform/x86/intel/speed_select_if/
Disst_if_common.c316 cpu >= nr_cpu_ids || cpu >= num_possible_cpus()) in _isst_if_get_pci_dev()
388 cpu >= nr_cpu_ids || cpu >= num_possible_cpus()) in isst_if_get_pci_dev()
446 isst_cpu_info = kcalloc(num_possible_cpus(), in isst_if_cpu_info_init()
487 cpu_map->logical_cpu >= num_possible_cpus()) in isst_if_proc_phyid_req()
/linux-6.6.21/arch/arm64/mm/
Dcontext.c387 WARN_ON(num_available_asids - 1 <= num_possible_cpus()); in asids_update_limit()
396 max_pinned_asids = num_available_asids - num_possible_cpus() - 2; in asids_update_limit()
/linux-6.6.21/arch/s390/pci/
Dpci_irq.c424 zpci_sbv = airq_iv_create(num_possible_cpus(), 0, NULL); in zpci_directed_irq_init()
429 iib.diib.nr_cpus = num_possible_cpus(); in zpci_directed_irq_init()
433 zpci_ibv = kcalloc(num_possible_cpus(), sizeof(*zpci_ibv), in zpci_directed_irq_init()
/linux-6.6.21/arch/riscv/kvm/
Dvmid.c39 if ((1UL << vmid_bits) < num_possible_cpus()) in kvm_riscv_gstage_vmid_detect()
/linux-6.6.21/drivers/hwtracing/stm/
Dftrace.c68 stm_ftrace.data.nr_chans = roundup_pow_of_two(num_possible_cpus()); in stm_ftrace_init()
/linux-6.6.21/drivers/hv/
Dhv_common.c338 hv_vp_index = kmalloc_array(num_possible_cpus(), sizeof(*hv_vp_index), in hv_common_init()
345 for (i = 0; i < num_possible_cpus(); i++) in hv_common_init()
/linux-6.6.21/arch/s390/hypfs/
Dhypfs_diag0c.c38 cpu_vec = kmalloc_array(num_possible_cpus(), sizeof(*cpu_vec), in diag0c_store()

1234567