/linux/include/trace/events/ |
A D | thermal.h | 102 __bitmask(cpumask, num_possible_cpus()) 111 num_possible_cpus()); 132 __bitmask(cpumask, num_possible_cpus()) 140 num_possible_cpus());
|
/linux/drivers/irqchip/ |
A D | irq-ompic.c | 165 if (resource_size(&res) < (num_possible_cpus() * OMPIC_CPUBYTES)) { in ompic_of_init() 168 (num_possible_cpus() * OMPIC_CPUBYTES)); in ompic_of_init()
|
/linux/drivers/clocksource/ |
A D | ingenic-timer.c | 290 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/arch/ia64/mm/ |
A D | contig.c | 83 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()
|
A D | tlb.c | 205 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/drivers/nvdimm/ |
A D | region.c | 20 && nd_region->num_lanes < num_possible_cpus() in nd_region_probe() 24 num_possible_cpus()); in nd_region_probe()
|
/linux/samples/trace_events/ |
A D | trace-events-sample.h | 268 __bitmask( cpus, num_possible_cpus() ) 277 __assign_bitmask(cpus, cpumask_bits(mask), num_possible_cpus());
|
/linux/drivers/hv/ |
A D | hv_common.c | 100 hv_vp_index = kmalloc_array(num_possible_cpus(), sizeof(*hv_vp_index), in hv_common_init() 107 for (i = 0; i < num_possible_cpus(); i++) in hv_common_init()
|
/linux/drivers/cpufreq/ |
A D | armada-8k-cpufreq.c | 97 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()
|
A D | qcom-cpufreq-nvmem.c | 318 drv->names_opp_tables = kcalloc(num_possible_cpus(), in qcom_cpufreq_probe() 325 drv->hw_opp_tables = kcalloc(num_possible_cpus(), in qcom_cpufreq_probe() 333 drv->genpd_opp_tables = kcalloc(num_possible_cpus(), in qcom_cpufreq_probe()
|
/linux/arch/sparc/kernel/ |
A D | cpumap.c | 138 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/drivers/platform/x86/intel/speed_select_if/ |
A D | isst_if_common.c | 300 cpu >= num_possible_cpus()) in _isst_if_get_pci_dev() 365 cpu >= num_possible_cpus()) in isst_if_get_pci_dev() 414 isst_cpu_info = kcalloc(num_possible_cpus(), in isst_if_cpu_info_init() 445 cpu_map->logical_cpu >= num_possible_cpus()) in isst_if_proc_phyid_req()
|
/linux/arch/x86/kernel/ |
A D | i8253.c | 60 if (num_possible_cpus() > 1 || is_hpet_enabled() || in init_pit_clocksource()
|
A D | kvmclock.c | 208 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()
|
/linux/arch/mips/kernel/ |
A D | i8253.c | 32 if (num_possible_cpus() > 1 || /* PIT does not scale! */ in init_pit_clocksource()
|
/linux/arch/microblaze/include/asm/ |
A D | fixmap.h | 50 FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * num_possible_cpus()) - 1,
|
/linux/arch/csky/mm/ |
A D | context.c | 31 BUG_ON(((1 << CONFIG_CPU_ASID_BITS) - 1) <= num_possible_cpus()); in asids_init()
|
/linux/arch/s390/pci/ |
A D | pci_irq.c | 419 zpci_sbv = airq_iv_create(num_possible_cpus(), 0); in zpci_directed_irq_init() 424 iib.diib.nr_cpus = num_possible_cpus(); in zpci_directed_irq_init() 428 zpci_ibv = kcalloc(num_possible_cpus(), sizeof(*zpci_ibv), in zpci_directed_irq_init()
|
/linux/kernel/ |
A D | reboot.c | 642 if (cpu >= num_possible_cpus()) { in reboot_setup() 645 cpu, num_possible_cpus()); in reboot_setup() 847 if (cpunum >= num_possible_cpus()) in cpu_store()
|
/linux/mm/ |
A D | percpu.c | 1659 size * num_possible_cpus()); in pcpu_memcg_post_alloc_hook() 1662 obj_cgroup_uncharge(objcg, size * num_possible_cpus()); in pcpu_memcg_post_alloc_hook() 1679 obj_cgroup_uncharge(objcg, size * num_possible_cpus()); in pcpu_memcg_free_hook() 1683 -(size * num_possible_cpus())); in pcpu_memcg_free_hook() 2498 v = num_possible_cpus(); in pcpu_dump_alloc_info() 2942 if (wasted > num_possible_cpus() / 3) in pcpu_build_alloc_info() 3181 nr_g0_units = roundup(num_possible_cpus(), upa); in pcpu_page_first_chunk() 3190 pages_size = PFN_ALIGN(unit_pages * num_possible_cpus() * in pcpu_page_first_chunk() 3199 for (unit = 0; unit < num_possible_cpus(); unit++) { in pcpu_page_first_chunk() 3218 vm.size = num_possible_cpus() * ai->unit_size; in pcpu_page_first_chunk() [all …]
|
/linux/arch/arm64/mm/ |
A D | context.c | 387 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/lib/ |
A D | bucket_locks.c | 23 unsigned int nr_pcpus = num_possible_cpus(); in __alloc_bucket_spinlocks()
|
/linux/drivers/thermal/intel/ |
A D | intel_powerclamp.c | 559 if (bitmap_weight(cpu_clamping_mask, num_possible_cpus())) { in end_power_clamp() 560 for_each_set_bit(i, cpu_clamping_mask, num_possible_cpus()) { in end_power_clamp() 709 cpu_clamping_mask = bitmap_zalloc(num_possible_cpus(), GFP_KERNEL); in powerclamp_init()
|
/linux/drivers/gpu/drm/i810/ |
A D | i810_drv.c | 83 if (num_possible_cpus() > 1) { in i810_init()
|
/linux/drivers/hwtracing/stm/ |
A D | ftrace.c | 68 stm_ftrace.data.nr_chans = roundup_pow_of_two(num_possible_cpus()); in stm_ftrace_init()
|