Home
last modified time | relevance | path

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

1234567

/linux-6.1.9/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.1.9/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.1.9/drivers/clocksource/ !
Dingenic-timer.c290 tcu = kzalloc(struct_size(tcu, timers, num_possible_cpus()), in ingenic_tcu_init()
300 num_possible_cpus() + 1); in ingenic_tcu_init()
306 soc_info->num_channels - num_possible_cpus() + 1) { in ingenic_tcu_init()
317 for (cpu = 0; cpu < num_possible_cpus(); cpu++) { in ingenic_tcu_init()
/linux-6.1.9/drivers/nvdimm/ !
Dregion.c24 && nd_region->num_lanes < num_possible_cpus() in nd_region_probe()
28 num_possible_cpus()); in nd_region_probe()
/linux-6.1.9/drivers/cpufreq/ !
Darmada-8k-cpufreq.c97 int opps_index, nb_cpus = num_possible_cpus(); in armada_8k_cpufreq_free_table()
137 nb_cpus = num_possible_cpus(); in armada_8k_cpufreq_init()
/linux-6.1.9/drivers/hv/ !
Dhv_common.c103 hv_vp_index = kmalloc_array(num_possible_cpus(), sizeof(*hv_vp_index), in hv_common_init()
110 for (i = 0; i < num_possible_cpus(); i++) in hv_common_init()
/linux-6.1.9/arch/x86/kernel/ !
Di8253.c60 if (num_possible_cpus() > 1 || is_hpet_enabled() || in init_pit_clocksource()
Dkvmclock.c208 if (HVC_BOOT_ARRAY_SIZE >= num_possible_cpus()) in kvmclock_init_mem()
211 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()
1096 if (num_possible_cpus() == 1) { in kvm_spinlock_init()
/linux-6.1.9/arch/mips/kernel/ !
Di8253.c32 if (num_possible_cpus() > 1 || /* PIT does not scale! */ in init_pit_clocksource()
/linux-6.1.9/samples/trace_events/ !
Dtrace-events-sample.h290 __bitmask( cpus, num_possible_cpus() )
301 __assign_bitmask(cpus, cpumask_bits(mask), num_possible_cpus());
/linux-6.1.9/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.1.9/arch/microblaze/include/asm/ !
Dfixmap.h50 FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * num_possible_cpus()) - 1,
/linux-6.1.9/arch/csky/mm/ !
Dcontext.c31 BUG_ON(((1 << CONFIG_CPU_ASID_BITS) - 1) <= num_possible_cpus()); in asids_init()
/linux-6.1.9/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.1.9/include/trace/events/ !
Dthermal.h120 __bitmask(cpumask, num_possible_cpus())
128 num_possible_cpus());
/linux-6.1.9/drivers/platform/x86/intel/speed_select_if/ !
Disst_if_common.c307 cpu >= nr_cpu_ids || cpu >= num_possible_cpus()) in _isst_if_get_pci_dev()
380 cpu >= nr_cpu_ids || cpu >= num_possible_cpus()) in isst_if_get_pci_dev()
429 isst_cpu_info = kcalloc(num_possible_cpus(), in isst_if_cpu_info_init()
470 cpu_map->logical_cpu >= num_possible_cpus()) in isst_if_proc_phyid_req()
/linux-6.1.9/lib/ !
Dbucket_locks.c23 unsigned int nr_pcpus = num_possible_cpus(); in __alloc_bucket_spinlocks()
/linux-6.1.9/drivers/gpu/drm/i810/ !
Di810_drv.c83 if (num_possible_cpus() > 1) { in i810_init()
/linux-6.1.9/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.1.9/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.1.9/arch/riscv/kvm/ !
Dvmid.c39 if ((1UL << vmid_bits) < num_possible_cpus()) in kvm_riscv_gstage_vmid_detect()
/linux-6.1.9/drivers/hwtracing/stm/ !
Dftrace.c68 stm_ftrace.data.nr_chans = roundup_pow_of_two(num_possible_cpus()); in stm_ftrace_init()
/linux-6.1.9/arch/s390/hypfs/ !
Dhypfs_diag0c.c38 cpu_vec = kmalloc_array(num_possible_cpus(), sizeof(*cpu_vec), in diag0c_store()

1234567