num_online_cpus 1206 arch/alpha/kernel/setup.c num_online_cpus(), cpumask_bits(cpu_possible_mask)[0]); num_online_cpus 498 arch/alpha/kernel/smp.c num_online_cpus(), num_online_cpus 36 arch/arm/kernel/hibernate.c WARN_ON(num_online_cpus() != 1); num_online_cpus 109 arch/arm/kernel/machine_kexec.c atomic_set(&waiting_for_crash_ipi, num_online_cpus() - 1); num_online_cpus 173 arch/arm/kernel/machine_kexec.c BUG_ON(num_online_cpus() > 1); num_online_cpus 81 arch/arm/kernel/reboot.c _soft_restart(addr, num_online_cpus() == 1); num_online_cpus 462 arch/arm/kernel/smp.c num_online_cpus(), num_online_cpus 720 arch/arm/kernel/smp.c while (num_online_cpus() > 1 && timeout--) num_online_cpus 723 arch/arm/kernel/smp.c if (num_online_cpus() > 1) num_online_cpus 23 arch/arm/mach-imx/cpuidle-imx6q.c if (++num_idle_cpus == num_online_cpus()) num_online_cpus 30 arch/arm/mach-imx/cpuidle-imx6q.c if (num_idle_cpus-- == num_online_cpus()) num_online_cpus 102 arch/arm/mach-omap2/cpuidle44xx.c if (cx->mpu_state_vote == num_online_cpus()) { num_online_cpus 111 arch/arm/mach-omap2/cpuidle44xx.c if (cx->mpu_state_vote == num_online_cpus()) num_online_cpus 66 arch/arm/mach-tegra/cpuidle-tegra30.c if (num_online_cpus() > 1 || !tegra_cpu_rail_off_ready()) { num_online_cpus 13 arch/arm/mm/l2c-common.c WARN_ON(num_online_cpus() > 1); num_online_cpus 1057 arch/arm64/kernel/cpufeature.c remap_fn(cpu, num_online_cpus(), __pa_symbol(swapper_pg_dir)); num_online_cpus 112 arch/arm64/kernel/hibernate.c WARN_ON(num_online_cpus() != 1); num_online_cpus 204 arch/arm64/kernel/insn.c while (atomic_read(&pp->cpu_count) <= num_online_cpus()) num_online_cpus 154 arch/arm64/kernel/machine_kexec.c BUG_ON(!in_kexec_crash && (stuck_cpus || (num_online_cpus() > 1))); num_online_cpus 415 arch/arm64/kernel/smp.c pr_info("SMP: Total of %d processors activated.\n", num_online_cpus()); num_online_cpus 966 arch/arm64/kernel/smp.c return num_online_cpus() - this_cpu_online; num_online_cpus 287 arch/ia64/include/asm/uv/uv_hub.h return num_online_cpus(); num_online_cpus 67 arch/ia64/kernel/crash.c int cpu_num = num_online_cpus() - 1; num_online_cpus 1684 arch/ia64/kernel/mca.c if (!sos->monarch && atomic_add_return(1, &slaves) == num_online_cpus()) { num_online_cpus 5631 arch/ia64/kernel/perfmon.c if (num_online_cpus() == 1 && pfm_sysctl.debug > 0) { num_online_cpus 705 arch/ia64/kernel/smpboot.c (int)num_online_cpus(), bogosum/(500000/HZ), (bogosum/(5000/HZ))%100); num_online_cpus 260 arch/mips/cavium-octeon/setup.c while (num_online_cpus() > 1) { num_online_cpus 64 arch/mips/kernel/crash.c ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ num_online_cpus 144 arch/mips/kernel/machine_kexec.c while (num_online_cpus() > 1) { num_online_cpus 1110 arch/mips/kvm/mips.c r = num_online_cpus(); num_online_cpus 237 arch/mips/sgi-ip27/ip27-nmi.c while (atomic_read(&nmied_cpus) != num_online_cpus()); num_online_cpus 27 arch/parisc/kernel/alternative.c int num_cpus = num_online_cpus(); num_online_cpus 419 arch/parisc/kernel/cache.c if (num_online_cpus() > 1 && !parisc_requires_coherency()) { num_online_cpus 422 arch/parisc/kernel/cache.c threshold /= num_online_cpus(); num_online_cpus 443 arch/parisc/kernel/cache.c threshold = PAGE_ALIGN((num_online_cpus() * size * alltime) / rangetime); num_online_cpus 107 arch/parisc/kernel/irq.c cpu_dest = cpumask_next_and(d->irq & (num_online_cpus()-1), num_online_cpus 168 arch/parisc/kernel/irq.c if (num_online_cpus() > 1) { num_online_cpus 63 arch/parisc/kernel/kexec.c while (num_online_cpus() > 1) { num_online_cpus 87 arch/parisc/kernel/processor.c if (num_online_cpus() >= nr_cpu_ids) { num_online_cpus 324 arch/parisc/kernel/setup.c num_online_cpus(), num_present_cpus(), num_online_cpus 334 arch/parisc/kernel/setup.c if (num_online_cpus() == 1) num_online_cpus 252 arch/parisc/kernel/time.c if (num_online_cpus() > 1 && !running_on_qemu) { num_online_cpus 107 arch/powerpc/kernel/crash.c unsigned int ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ num_online_cpus 640 arch/powerpc/kvm/powerpc.c r = num_online_cpus(); num_online_cpus 251 arch/powerpc/mm/nohash/mmu_context.c if (nact > num_online_cpus()) num_online_cpus 253 arch/powerpc/mm/nohash/mmu_context.c nact, num_online_cpus()); num_online_cpus 308 arch/powerpc/mm/nohash/mmu_context.c if (num_online_cpus() > 1) { num_online_cpus 892 arch/powerpc/platforms/powermac/smp.c num_online_cpus() < 2) { num_online_cpus 592 arch/powerpc/xmon/xmon.c int ncpus = num_online_cpus(); num_online_cpus 186 arch/riscv/kernel/smp.c if (num_online_cpus() > 1) { num_online_cpus 199 arch/riscv/kernel/smp.c while (num_online_cpus() > 1 && timeout--) num_online_cpus 202 arch/riscv/kernel/smp.c if (num_online_cpus() > 1) num_online_cpus 37 arch/s390/hypfs/hypfs_diag0c.c cpu_count = num_online_cpus(); num_online_cpus 130 arch/s390/kernel/processor.c num_online_cpus(), loops_per_jiffy/(500000/HZ), num_online_cpus 671 arch/s390/kernel/time.c atomic_set(&stp_sync.cpus, num_online_cpus() - 1); num_online_cpus 256 arch/sh/kernel/smp.c "(%lu.%02lu BogoMIPS).\n", num_online_cpus(), num_online_cpus 51 arch/sh/mm/cache.c if (num_online_cpus() > 1) num_online_cpus 346 arch/sparc/kernel/cpu.c num_online_cpus() num_online_cpus 394 arch/sparc/kernel/cpu.c num_online_cpus(), num_online_cpus 380 arch/sparc/kernel/cpumap.c end = index % num_online_cpus(); num_online_cpus 406 arch/sparc/kernel/cpumap.c if (unlikely(root_node->num_cpus != num_online_cpus())) { num_online_cpus 1175 arch/sparc/kernel/smp_64.c int ncpus = num_online_cpus(); num_online_cpus 35 arch/x86/kernel/acpi/cstate.c if (num_online_cpus() == 1) num_online_cpus 553 arch/x86/kernel/alternative.c BUG_ON(num_online_cpus() != 1); num_online_cpus 320 arch/x86/kernel/apb_timer.c pr_debug("%s: %d CPUs online\n", __func__, num_online_cpus()); num_online_cpus 40 arch/x86/kernel/apic/ipi.c if (apic_ipi_shorthand_off || num_online_cpus() == 1 || num_online_cpus 50 arch/x86/kernel/apic/ipi.c if (num_online_cpus() < 2) num_online_cpus 88 arch/x86/kernel/apic/ipi.c else if (num_online_cpus() > 1) num_online_cpus 610 arch/x86/kernel/apic/x2apic_uv_x.c WARN_ON(preemptible() && num_online_cpus() > 1); num_online_cpus 1648 arch/x86/kernel/apm_32.c if ((num_online_cpus() == 1) && num_online_cpus 1780 arch/x86/kernel/apm_32.c if (debug && (num_online_cpus() == 1 || smp)) { num_online_cpus 1841 arch/x86/kernel/apm_32.c if (num_online_cpus() == 1 || smp) { num_online_cpus 2312 arch/x86/kernel/apm_32.c if ((num_online_cpus() > 1) && !power_off && !smp) { num_online_cpus 2360 arch/x86/kernel/apm_32.c if (num_online_cpus() > 1 && !smp) { num_online_cpus 962 arch/x86/kernel/cpu/mce/core.c int cpus = num_online_cpus(); num_online_cpus 1043 arch/x86/kernel/cpu/mce/core.c int cpus = num_online_cpus(); num_online_cpus 531 arch/x86/kernel/cpu/microcode/core.c int all_cpus = num_online_cpus(); num_online_cpus 587 arch/x86/kernel/cpu/microcode/core.c if (__wait_for_cpus(&late_cpus_out, NSEC_PER_SEC * num_online_cpus())) num_online_cpus 566 arch/x86/kernel/ftrace.c if (num_online_cpus() == 1) num_online_cpus 856 arch/x86/kernel/reboot.c atomic_set(&waiting_for_crash_ipi, num_online_cpus() - 1); num_online_cpus 170 arch/x86/kernel/smp.c if (num_online_cpus() > 1) { num_online_cpus 187 arch/x86/kernel/smp.c while (num_online_cpus() > 1 && timeout--) num_online_cpus 192 arch/x86/kernel/smp.c if (num_online_cpus() > 1) { num_online_cpus 212 arch/x86/kernel/smp.c while (num_online_cpus() > 1 && (wait || timeout--)) num_online_cpus 664 arch/x86/kernel/smpboot.c num_online_cpus(), num_online_cpus 331 arch/x86/kernel/tboot.c if (num_online_cpus() == 1) { num_online_cpus 980 arch/x86/kernel/tsc.c if (num_online_cpus() > 1) { num_online_cpus 384 arch/x86/mm/mmio-mod.c if (num_online_cpus() > 1) num_online_cpus 396 arch/x86/mm/mmio-mod.c if (num_online_cpus() > 1) num_online_cpus 420 arch/x86/mm/mmio-mod.c if (num_online_cpus() > 1) num_online_cpus 2226 arch/x86/mm/pageattr.c WARN_ONCE(num_online_cpus() > 1, "Don't call after initializing SMP"); num_online_cpus 2269 arch/x86/mm/pageattr.c WARN_ONCE(num_online_cpus() > 1, "Don't call after initializing SMP"); num_online_cpus 576 arch/x86/platform/uv/uv_nmi.c int i, j, k, n = num_online_cpus(); num_online_cpus 657 arch/x86/platform/uv/uv_nmi.c atomic_read(&uv_nmi_cpus_in_nmi), num_online_cpus()); num_online_cpus 739 arch/x86/platform/uv/uv_nmi.c int out = num_online_cpus() - in; num_online_cpus 250 arch/x86/xen/smp.c if (!(num_online_cpus() > 1) || (xen_vector < 0)) num_online_cpus 47 arch/xtensa/kernel/jump_label.c while (atomic_read(&patch->cpu_count) <= num_online_cpus()) num_online_cpus 591 arch/xtensa/kernel/setup.c num_online_cpus(), num_online_cpus 254 drivers/acpi/acpi_pad.c num_cpus = min_t(unsigned int, num_cpus, num_online_cpus()); num_online_cpus 304 drivers/acpi/acpi_processor.c if (invalid_logical_cpuid(pr->id) && (num_online_cpus() == 1)) num_online_cpus 233 drivers/acpi/processor_idle.c if ((num_online_cpus() > 1) && num_online_cpus 735 drivers/acpi/processor_idle.c if (c3_cpu_count == num_online_cpus()) num_online_cpus 765 drivers/acpi/processor_idle.c if (acpi_idle_fallback_to_c1(pr) && num_online_cpus() > 1) { num_online_cpus 1695 drivers/block/aoe/aoecmd.c ncpus = num_online_cpus(); num_online_cpus 1493 drivers/block/xen-blkback/blkback.c xenblk_max_queues = num_online_cpus(); num_online_cpus 2717 drivers/block/xen-blkfront.c int nr_cpus = num_online_cpus(); num_online_cpus 962 drivers/block/zram/zram_drv.c return scnprintf(buf, PAGE_SIZE, "%d\n", num_online_cpus()); num_online_cpus 930 drivers/cpufreq/longhaul.c if (num_online_cpus() > 1) { num_online_cpus 1046 drivers/cpufreq/powernow-k8.c if (num_online_cpus() != 1) { num_online_cpus 1193 drivers/cpufreq/powernow-k8.c if (supported_cpus != num_online_cpus()) { num_online_cpus 65 drivers/cpuidle/cpuidle-exynos.c if (num_online_cpus() > 1 || dev->cpu != 0) num_online_cpus 29 drivers/cpuidle/cpuidle-ux500.c if (atomic_inc_return(&master) == num_online_cpus()) { num_online_cpus 4987 drivers/crypto/caam/caamalg_qi2.c if (priv->num_pairs > num_online_cpus()) { num_online_cpus 4989 drivers/crypto/caam/caamalg_qi2.c priv->num_pairs - num_online_cpus()); num_online_cpus 4990 drivers/crypto/caam/caamalg_qi2.c priv->num_pairs = num_online_cpus(); num_online_cpus 626 drivers/crypto/cavium/cpt/cptvf_main.c cpu = cptvf->vfid % num_online_cpus(); num_online_cpus 342 drivers/crypto/cavium/nitrox/nitrox_isr.c cpu = qvec->ring % num_online_cpus(); num_online_cpus 363 drivers/crypto/cavium/nitrox/nitrox_isr.c cpu = num_online_cpus(); num_online_cpus 441 drivers/crypto/cavium/nitrox/nitrox_isr.c cpu = num_online_cpus(); num_online_cpus 486 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->nr_queues = min_t(u32, MAX_PF_QUEUES, num_online_cpus()); num_online_cpus 176 drivers/crypto/qat/qat_common/adf_isr.c unsigned int cpu, cpus = num_online_cpus(); num_online_cpus 252 drivers/crypto/qat/qat_common/adf_vf_isr.c cpu = accel_dev->accel_id % num_online_cpus(); num_online_cpus 162 drivers/crypto/qat/qat_common/qat_crypto.c int cpus = num_online_cpus(); num_online_cpus 792 drivers/dma/fsl-qdma.c cpu = i % num_online_cpus(); num_online_cpus 1094 drivers/dma/fsl-qdma.c blk_num = min_t(int, blk_num, num_online_cpus()); num_online_cpus 135 drivers/firmware/psci/psci_checker.c num_online_cpus() != nb_available_cpus); num_online_cpus 457 drivers/firmware/psci/psci_checker.c nb_available_cpus = num_online_cpus(); num_online_cpus 438 drivers/gpu/drm/i915/selftests/i915_request.c unsigned int ncpus = num_online_cpus(); num_online_cpus 1106 drivers/gpu/drm/i915/selftests/i915_request.c unsigned int ncpus = num_online_cpus(); num_online_cpus 1175 drivers/gpu/drm/i915/selftests/i915_request.c t[id].max_batch /= num_online_cpus() + 1; num_online_cpus 276 drivers/infiniband/core/cq.c min_t(int, dev->num_comp_vectors, num_online_cpus()); num_online_cpus 334 drivers/infiniband/hw/bnxt_re/main.c num_msix_want = min_t(u32, BNXT_RE_MAX_MSIX, num_online_cpus()); num_online_cpus 183 drivers/infiniband/hw/hfi1/affinity.c node_affinity.num_online_cpus = num_online_cpus(); num_online_cpus 799 drivers/infiniband/hw/hfi1/affinity.c if (cpu > num_online_cpus() || cpu == sde->cpu) num_online_cpus 1010 drivers/infiniband/hw/hfi1/affinity.c uint num_cores_per_socket = node_affinity.num_online_cpus / num_online_cpus 116 drivers/infiniband/hw/hfi1/affinity.h int num_online_cpus; num_online_cpus 1202 drivers/infiniband/hw/hfi1/debugfs.c if (*pos >= num_online_cpus()) num_online_cpus 1211 drivers/infiniband/hw/hfi1/debugfs.c if (*pos >= num_online_cpus()) num_online_cpus 1454 drivers/infiniband/hw/i40iw/i40iw_main.c if (iwdev->msix_count <= num_online_cpus()) num_online_cpus 3083 drivers/infiniband/hw/ocrdma/ocrdma_hw.c num_eq = min_t(u32, num_eq, num_online_cpus()); num_online_cpus 2284 drivers/infiniband/hw/qib/qib_iba7220.c int nctxts = dd->first_user_ctxt + num_online_cpus(); num_online_cpus 3431 drivers/infiniband/hw/qib/qib_iba7322.c cpumask_weight(local_mask) == num_online_cpus()) { num_online_cpus 3917 drivers/infiniband/hw/qib/qib_iba7322.c int nctxts = dd->first_user_ctxt + num_online_cpus(); num_online_cpus 105 drivers/infiniband/hw/qib/qib_init.c dd->cfgctxts = dd->first_user_ctxt + num_online_cpus(); num_online_cpus 1107 drivers/infiniband/hw/qib/qib_init.c u32 count = num_online_cpus(); num_online_cpus 77 drivers/infiniband/ulp/iser/iser_verbs.c device->comps_used = min_t(int, num_online_cpus(), num_online_cpus 252 drivers/infiniband/ulp/isert/ib_isert.c device->comps_used = min(ISERT_MAX_CQ, min_t(int, num_online_cpus(), num_online_cpus 3905 drivers/infiniband/ulp/srp/ib_srp.c num_online_cpus())); num_online_cpus 1962 drivers/macintosh/via-pmu.c if (num_online_cpus() > 1 || cpu_is_offline(0)) num_online_cpus 1298 drivers/mailbox/bcm-flexrm-mailbox.c val = (num_online_cpus() < val) ? val / num_online_cpus() : 1; num_online_cpus 1299 drivers/mailbox/bcm-flexrm-mailbox.c cpumask_set_cpu((ring->num / val) % num_online_cpus(), num_online_cpus 2721 drivers/md/dm-crypt.c num_online_cpus(), devname); num_online_cpus 774 drivers/md/dm-verity-fec.c ret = mempool_init(&f->rs_pool, num_online_cpus(), fec_rs_alloc, num_online_cpus 790 drivers/md/dm-verity-fec.c ret = mempool_init_slab_pool(&f->prealloc_pool, num_online_cpus() * num_online_cpus 805 drivers/md/dm-verity-fec.c ret = mempool_init_kmalloc_pool(&f->output_pool, num_online_cpus(), num_online_cpus 1179 drivers/md/dm-verity-target.c v->verify_wq = alloc_workqueue("kverityd", WQ_CPU_INTENSIVE | WQ_MEM_RECLAIM | WQ_UNBOUND, num_online_cpus()); num_online_cpus 168 drivers/misc/sgi-gru/grufile.c info.cpus = num_online_cpus(); num_online_cpus 1406 drivers/net/ethernet/amazon/ena/ena_netdev.c cpu = i % num_online_cpus(); num_online_cpus 2432 drivers/net/ethernet/amazon/ena/ena_netdev.c host_info->num_cpus = num_online_cpus(); num_online_cpus 3170 drivers/net/ethernet/amazon/ena/ena_netdev.c io_queue_num = min_t(int, num_online_cpus(), ENA_MAX_NUM_IO_QUEUES); num_online_cpus 239 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_ring_count = min_t(unsigned int, num_online_cpus(), num_online_cpus 248 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_ring_count = min_t(unsigned int, num_online_cpus(), num_online_cpus 92 drivers/net/ethernet/aquantia/atlantic/aq_nic.c cfg->vecs = min(cfg->vecs, num_online_cpus()); num_online_cpus 271 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c numvecs = min(numvecs, num_online_cpus()); num_online_cpus 834 drivers/net/ethernet/atheros/alx/main.c num_txq = min_t(int, num_online_cpus(), ALX_MAX_TX_QUEUES); num_online_cpus 11576 drivers/net/ethernet/broadcom/bnxt/bnxt.c max_t(int, num_online_cpus() / bp->port_count, 1); num_online_cpus 12621 drivers/net/ethernet/broadcom/tg3.c info->data = num_online_cpus(); num_online_cpus 2529 drivers/net/ethernet/brocade/bna/bnad.c rxps = min((uint)num_online_cpus(), num_online_cpus 846 drivers/net/ethernet/cavium/liquidio/octeon_device.c cpu_num = i % num_online_cpus(); num_online_cpus 1240 drivers/net/ethernet/cavium/thunder/nic_main.c if (num_online_cpus() <= MAX_QUEUES_PER_QSET) num_online_cpus 2162 drivers/net/ethernet/cavium/thunder/nicvf_main.c qcount = min_t(int, num_online_cpus(), num_online_cpus 1047 drivers/net/ethernet/cavium/thunder/nicvf_queues.c qs->rq_cnt = min_t(u8, MAX_RCV_QUEUES_PER_QS, num_online_cpus()); num_online_cpus 1048 drivers/net/ethernet/cavium/thunder/nicvf_queues.c qs->sq_cnt = min_t(u8, MAX_SND_QUEUES_PER_QS, num_online_cpus()); num_online_cpus 5175 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c i = min_t(int, MAX_OFLD_QSETS, num_online_cpus()); num_online_cpus 284 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c num_online_cpus()); num_online_cpus 292 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c num_online_cpus()); num_online_cpus 295 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c num_online_cpus()); num_online_cpus 537 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c num_online_cpus()); num_online_cpus 546 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c i = min_t(int, uld_info->ntxq, num_online_cpus()); num_online_cpus 2761 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c if (q10g > num_online_cpus()) num_online_cpus 2762 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c q10g = num_online_cpus(); num_online_cpus 717 drivers/net/ethernet/emulex/benet/be.h (min_t(u16, be_max_nic_eqs(adapter), num_online_cpus())) num_online_cpus 3440 drivers/net/ethernet/emulex/benet/be_main.c max_roce_eqs = min(max_roce_eqs, num_online_cpus()); num_online_cpus 225 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c num_stats = num_online_cpus() + 1; num_online_cpus 286 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c num_cpus = num_online_cpus(); num_online_cpus 351 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c num_cpus = num_online_cpus(); num_online_cpus 1045 drivers/net/ethernet/freescale/enetc/enetc.c int cpus = num_online_cpus(); num_online_cpus 1258 drivers/net/ethernet/freescale/enetc/enetc.c cpumask_set_cpu(i % num_online_cpus(), &cpu_mask); num_online_cpus 178 drivers/net/ethernet/google/gve/gve_main.c active_cpus = min_t(int, priv->num_ntfy_blks / 2, num_online_cpus()); num_online_cpus 3396 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c vector_num = min_t(u16, num_online_cpus(), tqp_num); num_online_cpus 350 drivers/net/ethernet/huawei/hinic/hinic_main.c for (i = 0; i < num_online_cpus(); i++) { num_online_cpus 357 drivers/net/ethernet/huawei/hinic/hinic_main.c num_cpus = num_online_cpus(); num_online_cpus 497 drivers/net/ethernet/huawei/hinic/hinic_rx.c cpumask_set_cpu(qp->q_id % num_online_cpus(), &rq->affinity_mask); num_online_cpus 1826 drivers/net/ethernet/intel/fm10k/fm10k_main.c v_budget = min_t(u16, v_budget, num_online_cpus()); num_online_cpus 1998 drivers/net/ethernet/intel/fm10k/fm10k_pci.c rss = min_t(int, FM10K_MAX_RSS_INDICES, num_online_cpus()); num_online_cpus 10968 drivers/net/ethernet/intel/i40e/i40e_main.c cpus = num_online_cpus(); num_online_cpus 11681 drivers/net/ethernet/intel/i40e/i40e_main.c queue_count = min_t(int, queue_count, num_online_cpus()); num_online_cpus 11873 drivers/net/ethernet/intel/i40e/i40e_main.c num_online_cpus()); num_online_cpus 11965 drivers/net/ethernet/intel/i40e/i40e_main.c if (pf->hw.func_caps.vmdq && num_online_cpus() != 1) { num_online_cpus 11971 drivers/net/ethernet/intel/i40e/i40e_main.c if (pf->hw.func_caps.iwarp && num_online_cpus() != 1) { num_online_cpus 11974 drivers/net/ethernet/intel/i40e/i40e_main.c pf->num_iwarp_msix = (int)num_online_cpus() + 1; num_online_cpus 14392 drivers/net/ethernet/intel/i40e/i40e_main.c q_max = max_t(int, pf->rss_size_max, num_online_cpus()); num_online_cpus 1111 drivers/net/ethernet/intel/iavf/iavf_main.c (int)(num_online_cpus())); num_online_cpus 418 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c vfres.num_queue_pairs = min_t(int, num, num_online_cpus()); num_online_cpus 347 drivers/net/ethernet/intel/ice/ice_lib.c num_online_cpus()); num_online_cpus 356 drivers/net/ethernet/intel/ice/ice_lib.c num_online_cpus()); num_online_cpus 801 drivers/net/ethernet/intel/ice/ice_lib.c vsi->rss_size = min_t(int, num_online_cpus(), num_online_cpus 810 drivers/net/ethernet/intel/ice/ice_lib.c vsi->rss_size = min_t(int, num_online_cpus(), num_online_cpus 2396 drivers/net/ethernet/intel/ice/ice_main.c needed = min_t(int, num_online_cpus(), v_left); num_online_cpus 3756 drivers/net/ethernet/intel/igb/igb_main.c adapter->rss_queues = min_t(u32, max_rss_queues, num_online_cpus()); num_online_cpus 4395 drivers/net/ethernet/intel/igc/igc_main.c adapter->rss_queues = min_t(u32, max_rss_queues, num_online_cpus()); num_online_cpus 577 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c fcoe_i = min_t(u16, fcoe_i + rss_i, num_online_cpus()); num_online_cpus 669 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c fcoe_i = min_t(u16, f->limit + rss_i, num_online_cpus()); num_online_cpus 748 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c vectors = min_t(int, vectors, num_online_cpus()); num_online_cpus 6268 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c rss = min_t(int, ixgbe_max_rss_indices(adapter), num_online_cpus()); num_online_cpus 6273 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c fdir = min_t(int, IXGBE_MAX_FDIR_INDICES, num_online_cpus()); num_online_cpus 9706 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c num_online_cpus()); num_online_cpus 10993 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c fcoe_l = min_t(int, IXGBE_FCRETA_SIZE, num_online_cpus()); num_online_cpus 253 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c num_online_cpus()); num_online_cpus 255 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c rss = min_t(int, IXGBE_MAX_L2A_QUEUES, num_online_cpus()); num_online_cpus 2617 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c u16 rss = min_t(u16, num_online_cpus(), IXGBEVF_MAX_RSS_QUEUES); num_online_cpus 2655 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c v_budget = min_t(int, v_budget, num_online_cpus()); num_online_cpus 1792 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c return min_t(int, num_online_cpus(), MAX_RX_RINGS); num_online_cpus 158 drivers/net/ethernet/mellanox/mlx4/en_main.c min_t(int, num_online_cpus(), MLX4_EN_MAX_TX_RING_P_UP); num_online_cpus 2148 drivers/net/ethernet/mellanox/mlx4/en_netdev.c node = cpu_to_node(i % num_online_cpus()); num_online_cpus 2162 drivers/net/ethernet/mellanox/mlx4/en_netdev.c node = cpu_to_node(i % num_online_cpus()); num_online_cpus 257 drivers/net/ethernet/mellanox/mlx4/en_rx.c min_t(int, num_of_eqs, num_online_cpus()); num_online_cpus 2940 drivers/net/ethernet/mellanox/mlx4/main.c (int)num_online_cpus() + 1, num_online_cpus 271 drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c nvec = MLX5_CAP_GEN(dev, num_ports) * num_online_cpus() + num_online_cpus 3846 drivers/net/ethernet/netronome/nfp/nfp_net_common.c max_tx_rings, num_online_cpus()); num_online_cpus 3852 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->dp.num_r_vecs, num_online_cpus()); num_online_cpus 412 drivers/net/ethernet/pensando/ionic/ionic_lif.c new->intr.cpu = new->intr.index % num_online_cpus(); num_online_cpus 2228 drivers/net/ethernet/pensando/ionic/ionic_lif.c nxqs = min(nxqs, num_online_cpus()); num_online_cpus 2229 drivers/net/ethernet/pensando/ionic/ionic_lif.c neqs = min(neqs_per_lif, num_online_cpus()); num_online_cpus 656 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c num_msix = (num_online_cpus() >= MSIX_ENTRIES_PER_ADAPTER) ? num_online_cpus 657 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c num_rings = rounddown_pow_of_two(min_t(int, num_online_cpus(), num_online_cpus 4029 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c if (ring_cnt > num_online_cpus()) { num_online_cpus 4032 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c buf, num_online_cpus()); num_online_cpus 94 drivers/net/ethernet/sun/cassini.c #define CAS_NCPUS num_online_cpus() num_online_cpus 127 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_ring_count = min_t(unsigned int, num_online_cpus(), num_online_cpus 1388 drivers/net/hyperv/rndis_filter.c num_possible_rss_qs = min_t(u32, num_online_cpus(), num_online_cpus 1946 drivers/net/virtio_net.c num_cpu = num_online_cpus(); num_online_cpus 3126 drivers/net/virtio_net.c if (num_online_cpus() >= max_queue_pairs) num_online_cpus 3129 drivers/net/virtio_net.c vi->curr_queue_pairs = num_online_cpus(); num_online_cpus 3276 drivers/net/vmxnet3/vmxnet3_drv.c (int)num_online_cpus()); num_online_cpus 3284 drivers/net/vmxnet3/vmxnet3_drv.c (int)num_online_cpus()); num_online_cpus 3545 drivers/net/vmxnet3/vmxnet3_drv.c (int)num_online_cpus()); num_online_cpus 1642 drivers/net/wireless/intel/iwlwifi/pcie/trans.c max_irqs = min_t(u32, num_online_cpus() + 2, IWL_MAX_RX_HW_QUEUES); num_online_cpus 1644 drivers/net/xen-netback/netback.c num_online_cpus()); num_online_cpus 2207 drivers/net/xen-netfront.c num_online_cpus()); num_online_cpus 19 drivers/nvdimm/region.c if (nd_region->num_lanes > num_online_cpus() num_online_cpus 23 drivers/nvdimm/region.c num_online_cpus(), nd_region->num_lanes, num_online_cpus 630 drivers/nvme/host/fabrics.c opts->nr_io_queues = num_online_cpus(); num_online_cpus 726 drivers/nvme/host/fabrics.c num_online_cpus(), token); num_online_cpus 2445 drivers/nvme/host/fc.c nr_io_queues = min(min(opts->nr_io_queues, num_online_cpus()), num_online_cpus 2519 drivers/nvme/host/fc.c nr_io_queues = min(min(opts->nr_io_queues, num_online_cpus()), num_online_cpus 658 drivers/nvme/host/rdma.c min(opts->nr_io_queues, num_online_cpus())); num_online_cpus 660 drivers/nvme/host/rdma.c min(opts->nr_write_queues, num_online_cpus())); num_online_cpus 661 drivers/nvme/host/rdma.c nr_poll_queues = min(opts->nr_poll_queues, num_online_cpus()); num_online_cpus 1326 drivers/nvme/host/tcp.c n = (qid - 1) % num_online_cpus(); num_online_cpus 1590 drivers/nvme/host/tcp.c nr_io_queues = min(ctrl->opts->nr_io_queues, num_online_cpus()); num_online_cpus 1591 drivers/nvme/host/tcp.c nr_io_queues += min(ctrl->opts->nr_write_queues, num_online_cpus()); num_online_cpus 1592 drivers/nvme/host/tcp.c nr_io_queues += min(ctrl->opts->nr_poll_queues, num_online_cpus()); num_online_cpus 299 drivers/nvme/target/loop.c nr_io_queues = min(opts->nr_io_queues, num_online_cpus()); num_online_cpus 474 drivers/scsi/aacraid/comminit.c (unsigned int)num_online_cpus()); num_online_cpus 350 drivers/scsi/csiostor/csio_init.c hw->num_scsi_msix_cpus = num_online_cpus(); num_online_cpus 351 drivers/scsi/csiostor/csio_init.c hw->num_sqsets = num_online_cpus() * hw->num_pports; num_online_cpus 3003 drivers/scsi/cxlflash/main.c num_hwqs = num_online_cpus(); num_online_cpus 3005 drivers/scsi/cxlflash/main.c num_hwqs = num_online_cpus() / abs(nhwqs); num_online_cpus 10318 drivers/scsi/ipr.c (unsigned int)num_online_cpus(), num_online_cpus 5287 drivers/scsi/lpfc/lpfc_attr.c phba->cfg_fcp_cpu_map, num_online_cpus(), num_online_cpus 5819 drivers/scsi/megaraid/megaraid_sas_base.c num_msix_req = num_online_cpus() + instance->low_latency_index_start; num_online_cpus 6072 drivers/scsi/megaraid/megaraid_sas_base.c (num_online_cpus() >= MR_HIGH_IOPS_QUEUE_COUNT) && num_online_cpus 6116 drivers/scsi/megaraid/megaraid_sas_base.c num_msix_req = num_online_cpus() + instance->low_latency_index_start; num_online_cpus 6149 drivers/scsi/megaraid/megaraid_sas_base.c instance->msix_vectors, (unsigned int)num_online_cpus()); num_online_cpus 2900 drivers/scsi/mpt3sas/mpt3sas_base.c nr_cpus = num_online_cpus(); num_online_cpus 3008 drivers/scsi/mpt3sas/mpt3sas_base.c num_online_cpus() >= MPT3SAS_HIGH_IOPS_REPLY_QUEUES && num_online_cpus 6940 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->cpu_count = num_online_cpus(); num_online_cpus 570 drivers/scsi/qedf/qedf.h num_online_cpus()) num_online_cpus 2304 drivers/scsi/qedf/qedf_main.c rc = qed_ops->common->set_fp_int(qedf->cdev, num_online_cpus()); num_online_cpus 2314 drivers/scsi/qedf/qedf_main.c num_online_cpus()); num_online_cpus 55 drivers/scsi/qedi/qedi.h num_online_cpus()) num_online_cpus 1377 drivers/scsi/qedi/qedi_main.c rc = qedi_ops->common->set_fp_int(qedi->cdev, num_online_cpus()); num_online_cpus 1384 drivers/scsi/qedi/qedi_main.c qedi->int_info.msix_cnt, num_online_cpus()); num_online_cpus 4735 drivers/scsi/smartpqi/smartpqi_init.c num_cpus = num_online_cpus(); num_online_cpus 672 drivers/scsi/storvsc_drv.c num_sc = min((int)(num_online_cpus() - 1), max_chns); num_online_cpus 1734 drivers/scsi/storvsc_drv.c int num_cpus = num_online_cpus(); num_online_cpus 4102 drivers/staging/qlge/qlge_main.c int cpu_cnt = min(MAX_CPUS, (int)num_online_cpus()); num_online_cpus 313 drivers/thermal/intel/intel_powerclamp.c win * num_online_cpus()) num_online_cpus 358 drivers/thermal/intel/intel_powerclamp.c 2 * win * num_online_cpus(); num_online_cpus 335 drivers/usb/host/xhci.c xhci->msix_count = min(num_online_cpus() + 1, num_online_cpus 692 drivers/video/fbdev/core/fbmem.c num_online_cpus()); num_online_cpus 892 fs/btrfs/compression.c int cpus = num_online_cpus(); num_online_cpus 990 fs/btrfs/compression.c if (*free_ws <= num_online_cpus()) { num_online_cpus 2699 fs/btrfs/disk-io.c num_online_cpus() + 2, 8); num_online_cpus 646 fs/btrfs/space-info.c to_reclaim = min_t(u64, num_online_cpus() * SZ_1M, SZ_16M); num_online_cpus 1302 fs/btrfs/super.c num_online_cpus() + 2, 8)) num_online_cpus 493 fs/crypto/crypto.c num_online_cpus()); num_online_cpus 3284 fs/io_uring.c min(ctx->sq_entries - 1, 2 * num_online_cpus())); num_online_cpus 977 fs/jfs/super.c commit_threads = num_online_cpus(); num_online_cpus 213 fs/proc/stat.c unsigned int size = 1024 + 128 * num_online_cpus(); num_online_cpus 29 fs/squashfs/decompressor_multi.c #define MAX_DECOMPRESSOR (num_online_cpus() * 2) num_online_cpus 271 fs/verity/verify.c num_online_cpus()); num_online_cpus 982 kernel/cpu.c if (num_online_cpus() == 1) num_online_cpus 1258 kernel/cpu.c BUG_ON(num_online_cpus() > 1); num_online_cpus 533 kernel/debug/debug_core.c int online_cpus = num_online_cpus(); num_online_cpus 5829 kernel/events/core.c user_lock_limit *= num_online_cpus(); num_online_cpus 889 kernel/locking/locktorture.c cxt.nrealwriters_stress = 2 * num_online_cpus(); num_online_cpus 933 kernel/locking/locktorture.c cxt.nrealwriters_stress = num_online_cpus(); num_online_cpus 583 kernel/locking/test-ww_mutex.c int ncpus = num_online_cpus(); num_online_cpus 689 kernel/power/swap.c nr_threads = num_online_cpus() - 1; num_online_cpus 1180 kernel/power/swap.c nr_threads = num_online_cpus() - 1; num_online_cpus 272 kernel/printk/printk_safe.c if (num_online_cpus() > 1) num_online_cpus 578 kernel/rcu/rcuperf.c nr = num_online_cpus() + 1 + n; num_online_cpus 1378 kernel/rcu/rcutorture.c while (num_online_cpus() < mynumonline && !torture_must_stop()) num_online_cpus 2365 kernel/rcu/rcutorture.c nrealreaders = num_online_cpus() - 2 - nreaders; num_online_cpus 2689 kernel/rcu/tree.c ret = num_online_cpus() <= 1; num_online_cpus 3328 kernel/rcu/tree.c WARN_ON(num_online_cpus() != 1); num_online_cpus 150 kernel/sched/fair.c unsigned int cpus = min_t(unsigned int, num_online_cpus(), 8); num_online_cpus 9230 kernel/sched/fair.c max_load_balance_interval = HZ*num_online_cpus()/10; num_online_cpus 71 kernel/sched/membarrier.c if (num_online_cpus() == 1) num_online_cpus 150 kernel/sched/membarrier.c if (atomic_read(&mm->mm_users) == 1 || num_online_cpus() == 1) num_online_cpus 206 kernel/sched/membarrier.c if (atomic_read(&mm->mm_users) == 1 || num_online_cpus() == 1) { num_online_cpus 357 kernel/sched/membarrier.c if (num_online_cpus() > 1) num_online_cpus 590 kernel/smp.c if (num_online_cpus() >= setup_max_cpus) num_online_cpus 597 kernel/smp.c num_cpus = num_online_cpus(); num_online_cpus 601 kernel/stop_machine.c .num_threads = num_online_cpus(), num_online_cpus 528 kernel/time/tick-common.c if (tick_freeze_depth == num_online_cpus()) { num_online_cpus 554 kernel/time/tick-common.c if (tick_freeze_depth == num_online_cpus()) { num_online_cpus 91 kernel/torture.c if (num_online_cpus() <= 1) num_online_cpus 383 kernel/torture.c if (num_online_cpus() == 1) { num_online_cpus 3601 kernel/trace/trace.c entries, total, num_online_cpus()); num_online_cpus 3671 kernel/trace/trace.c seq_printf(m, " #P:%d)\n", num_online_cpus()); num_online_cpus 211 lib/cpumask.c i %= num_online_cpus(); num_online_cpus 170 lib/percpu_counter.c int nr = num_online_cpus(); num_online_cpus 208 lib/percpu_counter.c if (abs(count - rhs) > (batch * num_online_cpus())) { num_online_cpus 230 lib/test_vmalloc.c junk_length = fls(num_online_cpus()); num_online_cpus 242 mm/kasan/quarantine.c percpu_quarantines = QUARANTINE_PERCPU_SIZE * num_online_cpus(); num_online_cpus 2052 mm/page-writeback.c ratelimit_pages = dirty_thresh / (num_online_cpus() * 32); num_online_cpus 4691 mm/slub.c if (num_online_cpus() > 1 && num_online_cpus 102 mm/swap_slots.c if (pages > num_online_cpus() * num_online_cpus 109 mm/swap_slots.c if (pages < num_online_cpus() * THRESHOLD_DEACTIVATE_SWAP_SLOTS_CACHE) num_online_cpus 810 mm/util.c -(s64)vm_committed_as_batch * num_online_cpus(), num_online_cpus 1217 mm/vmalloc.c log = fls(num_online_cpus()); num_online_cpus 186 mm/vmstat.c threshold = max(1, (int)(watermark_distance / num_online_cpus())); num_online_cpus 233 mm/vmstat.c threshold = 2 * fls(num_online_cpus()) * (1 + fls(mem)); num_online_cpus 284 mm/vmstat.c max_drift = num_online_cpus() * threshold; num_online_cpus 2655 net/core/dev.c 1 : min_t(int, DEFAULT_MAX_NUM_RSS_QUEUES, num_online_cpus()); num_online_cpus 206 virt/kvm/arm/arm.c r = num_online_cpus();