Home
last modified time | relevance | path

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

123456

/Linux-v5.4/include/trace/events/
Dthermal.h102 __bitmask(cpumask, num_possible_cpus())
111 num_possible_cpus());
132 __bitmask(cpumask, num_possible_cpus())
140 num_possible_cpus());
/Linux-v5.4/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-v5.4/arch/ia64/mm/
Dcontig.c87 size_t size = PERCPU_PAGE_SIZE * num_possible_cpus(); in alloc_per_cpu_data()
112 ai = pcpu_alloc_alloc_info(1, num_possible_cpus()); in setup_per_cpu_areas()
Dtlb.c206 need_ptcg_sem = num_possible_cpus() > nptcg; in setup_ptcg_sem()
225 need_ptcg_sem = (num_possible_cpus() > nptcg); in setup_ptcg_sem()
242 need_ptcg_sem = (num_possible_cpus() > nptcg); in setup_ptcg_sem()
/Linux-v5.4/drivers/nvdimm/
Dregion.c20 && nd_region->num_lanes < num_possible_cpus() in nd_region_probe()
24 num_possible_cpus()); in nd_region_probe()
/Linux-v5.4/arch/x86/hyperv/
Dhv_init.c275 hv_vp_index = kmalloc_array(num_possible_cpus(), sizeof(*hv_vp_index), in hyperv_init()
280 for (i = 0; i < num_possible_cpus(); i++) in hyperv_init()
283 hv_vp_assist_page = kcalloc(num_possible_cpus(), in hyperv_init()
/Linux-v5.4/samples/trace_events/
Dtrace-events-sample.h241 __bitmask( cpus, num_possible_cpus() )
250 __assign_bitmask(cpus, cpumask_bits(mask), num_possible_cpus());
/Linux-v5.4/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()
Dqcom-cpufreq-nvmem.c193 drv->opp_tables = kcalloc(num_possible_cpus(), sizeof(*drv->opp_tables), in qcom_cpufreq_probe()
200 drv->genpd_opp_tables = kcalloc(num_possible_cpus(), in qcom_cpufreq_probe()
/Linux-v5.4/arch/x86/kernel/
Di8253.c60 if (num_possible_cpus() > 1 || is_hpet_enabled() || in init_pit_clocksource()
Dkvmclock.c231 if (HVC_BOOT_ARRAY_SIZE >= num_possible_cpus()) in kvmclock_init_mem()
234 ncpus = num_possible_cpus() - HVC_BOOT_ARRAY_SIZE; in kvmclock_init_mem()
Dapb_timer.c321 if (num_possible_cpus() <= sfi_mtimer_num) in apbt_time_init()
322 apbt_num_timers_used = num_possible_cpus(); in apbt_time_init()
/Linux-v5.4/arch/mips/kernel/
Di8253.c35 if (num_possible_cpus() > 1 || /* PIT does not scale! */ in init_pit_clocksource()
Drtlx-cmp.c57 if (num_possible_cpus() - aprp_cpu_index() < 1) { in rtlx_module_init()
/Linux-v5.4/arch/microblaze/include/asm/
Dfixmap.h53 FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * num_possible_cpus()) - 1,
/Linux-v5.4/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-v5.4/arch/csky/mm/
Dcontext.c31 BUG_ON(((1 << CONFIG_CPU_ASID_BITS) - 1) <= num_possible_cpus()); in asids_init()
/Linux-v5.4/lib/
Dbucket_locks.c23 unsigned int nr_pcpus = num_possible_cpus(); in __alloc_bucket_spinlocks()
/Linux-v5.4/arch/s390/pci/
Dpci_irq.c381 zpci_sbv = airq_iv_create(num_possible_cpus(), 0); in zpci_directed_irq_init()
386 iib.diib.nr_cpus = num_possible_cpus(); in zpci_directed_irq_init()
390 zpci_ibv = kcalloc(num_possible_cpus(), sizeof(*zpci_ibv), in zpci_directed_irq_init()
/Linux-v5.4/drivers/gpu/drm/i810/
Di810_drv.c82 if (num_possible_cpus() > 1) { in i810_init()
/Linux-v5.4/drivers/platform/x86/intel_speed_select_if/
Disst_if_common.c303 cpu >= num_possible_cpus()) in isst_if_get_pci_dev()
347 isst_cpu_info = kcalloc(num_possible_cpus(), in isst_if_cpu_info_init()
378 cpu_map->logical_cpu >= num_possible_cpus()) in isst_if_proc_phyid_req()
/Linux-v5.4/arch/s390/hypfs/
Dhypfs_diag0c.c38 cpu_vec = kmalloc_array(num_possible_cpus(), sizeof(*cpu_vec), in diag0c_store()
/Linux-v5.4/fs/squashfs/
Ddecompressor_multi_percpu.c94 return num_possible_cpus(); in squashfs_max_decompressors()
/Linux-v5.4/drivers/thermal/intel/
Dintel_powerclamp.c562 if (bitmap_weight(cpu_clamping_mask, num_possible_cpus())) { in end_power_clamp()
563 for_each_set_bit(i, cpu_clamping_mask, num_possible_cpus()) { in end_power_clamp()
713 bitmap_size = BITS_TO_LONGS(num_possible_cpus()) * sizeof(long); in powerclamp_init()
/Linux-v5.4/arch/x86/xen/
Dspinlock.c119 if (num_possible_cpus() == 1) in xen_init_spinlocks()

123456