Home
last modified time | relevance | path

Searched refs:num_present_cpus (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.6.21/drivers/net/ethernet/cavium/liquidio/
Dcn23xx_vf_device.c652 if (rings_per_vf > num_present_cpus()) { in cn23xx_setup_octeon_vf_device()
656 num_present_cpus(), in cn23xx_setup_octeon_vf_device()
657 num_present_cpus()); in cn23xx_setup_octeon_vf_device()
659 num_present_cpus(); in cn23xx_setup_octeon_vf_device()
Dcn23xx_pf_device.c1276 num_pf_rings = num_present_cpus(); in cn23xx_sriov_config()
Dlio_core.c837 cpu_id_modulus = num_present_cpus(); in liquidio_setup_io_queues()
/linux-6.6.21/drivers/leds/trigger/
Dledtrig-cpu.c84 total_cpus = num_present_cpus(); in ledtrig_cpu()
/linux-6.6.21/arch/parisc/kernel/
Dalternative.c28 int num_cpus = num_present_cpus(); in apply_alternatives()
Dsetup.c260 num_online_cpus(), num_present_cpus(), in parisc_init()
/linux-6.6.21/arch/powerpc/kexec/
Dcrash.c122 ncpus = num_present_cpus() - 1; in crash_kexec_prepare_cpus()
/linux-6.6.21/arch/arc/kernel/
Dsmp.c107 if (num_present_cpus() <= 1) in smp_prepare_cpus()
/linux-6.6.21/include/linux/
Dcpumask.h1077 #define num_present_cpus() cpumask_weight(cpu_present_mask) macro
1109 #define num_present_cpus() 1U macro
/linux-6.6.21/arch/powerpc/platforms/85xx/
Dsmp.c445 int i, num_cpus = num_present_cpus(); in mpc85xx_smp_machine_kexec()
/linux-6.6.21/drivers/scsi/
Dstorvsc_drv.c1926 int num_present_cpus = num_present_cpus(); in storvsc_probe() local
2038 if (storvsc_max_hw_queues > num_present_cpus) { in storvsc_probe()
2046 host->nr_hw_queues = num_present_cpus; in storvsc_probe()
/linux-6.6.21/drivers/gpio/
Dgpio-realtek-otto.c439 nr_cpus = min(nr_cpus, num_present_cpus()); in realtek_gpio_probe()
/linux-6.6.21/drivers/dma/
Dmv_xor.c1365 max_engines = num_present_cpus(); in mv_xor_probe()
1367 max_channels = num_present_cpus(); in mv_xor_probe()
1371 DIV_ROUND_UP(num_present_cpus(), 2)); in mv_xor_probe()
/linux-6.6.21/arch/mips/kernel/
Dsmp.c269 BUG_ON(num_present_cpus() > 1); in mips_smp_ipi_allocate()
/linux-6.6.21/drivers/cpufreq/
Dpcc-cpufreq.c597 if (num_present_cpus() > 4) { in pcc_cpufreq_probe()
/linux-6.6.21/arch/powerpc/kernel/
Dsetup-common.c555 vdso_data->processorCount = num_present_cpus(); in smp_setup_cpu_maps()
/linux-6.6.21/drivers/net/wireless/st/cw1200/
Dqueue.c319 (queue->capacity - (num_present_cpus() - 1))) { in cw1200_queue_put()
/linux-6.6.21/drivers/net/caif/
Dcaif_virtio.c540 if (unlikely(cfv->vq_tx->num_free <= num_present_cpus())) { in cfv_netdev_tx()
/linux-6.6.21/drivers/net/ethernet/marvell/
Dmvneta.c1479 int max_cpu = num_present_cpus(); in mvneta_defaults_set()
3560 cpu = txq->id % num_present_cpus(); in mvneta_txq_sw_init()
3562 cpu = pp->rxq_def % num_present_cpus(); in mvneta_txq_sw_init()
4339 max_cpu = num_present_cpus(); in mvneta_percpu_elect()
/linux-6.6.21/arch/x86/kernel/
Dalternative.c1650 if (!noreplace_smp && (num_present_cpus() == 1 || setup_max_cpus <= 1)) { in alternative_instructions()
/linux-6.6.21/mm/
Dmm_init.c165 s32 nr = num_present_cpus(); in mm_compute_batch()
Dslub.c4163 nr_cpus = num_present_cpus(); in calculate_order()
/linux-6.6.21/arch/powerpc/kvm/
Dpowerpc.c656 r = min_t(unsigned int, num_present_cpus(), KVM_MAX_VCPUS); in kvm_vm_ioctl_check_extension()
/linux-6.6.21/drivers/net/hyperv/
Dnetvsc_drv.c1478 #define NETVSC_PCPU_STATS_LEN (num_present_cpus() * ARRAY_SIZE(pcpu_stats))
/linux-6.6.21/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c7512 priv->nthreads = min_t(unsigned int, num_present_cpus(), in mvpp2_probe()
7515 shared = num_present_cpus() - priv->nthreads; in mvpp2_probe()

12