Home
last modified time | relevance | path

Searched refs:num_online_cpus (Results 1 – 25 of 268) sorted by relevance

1234567891011

/linux-6.6.21/arch/riscv/kernel/
Dsmp.c251 if (num_online_cpus() > 1) { in smp_send_stop()
264 while (num_online_cpus() > 1 && timeout--) in smp_send_stop()
267 if (num_online_cpus() > 1) in smp_send_stop()
281 return num_online_cpus() - this_cpu_online; in num_other_online_cpus()
Dpatch.c232 if (atomic_inc_return(&patch->cpu_count) == num_online_cpus()) { in patch_text_cb()
240 while (atomic_read(&patch->cpu_count) <= num_online_cpus()) in patch_text_cb()
/linux-6.6.21/arch/arm/mach-imx/
Dcpuidle-imx6q.c24 if (++num_idle_cpus == num_online_cpus()) in imx6q_enter_wait()
33 if (num_idle_cpus-- == num_online_cpus()) in imx6q_enter_wait()
/linux-6.6.21/drivers/nvme/host/
Dfabrics.h208 return min(opts->nr_io_queues, num_online_cpus()) + in nvmf_nr_io_queues()
209 min(opts->nr_write_queues, num_online_cpus()) + in nvmf_nr_io_queues()
210 min(opts->nr_poll_queues, num_online_cpus()); in nvmf_nr_io_queues()
/linux-6.6.21/arch/x86/kernel/apic/
Dipi.c43 if (apic_ipi_shorthand_off || num_online_cpus() == 1 || in apic_smt_update()
53 if (num_online_cpus() < 2) in apic_send_IPI_allbutself()
91 else if (num_online_cpus() > 1) in native_send_call_func_ipi()
/linux-6.6.21/kernel/sched/
Dmembarrier.c253 if (num_online_cpus() == 1) in membarrier_global_expedited()
342 (atomic_read(&mm->mm_users) == 1 || num_online_cpus() == 1)) in membarrier_private_expedited()
437 if (atomic_read(&mm->mm_users) == 1 || num_online_cpus() == 1) { in sync_runqueues_membarrier_state()
648 if (num_online_cpus() > 1) in SYSCALL_DEFINE3()
/linux-6.6.21/arch/xtensa/kernel/
Djump_label.c43 if (atomic_inc_return(&patch->cpu_count) == num_online_cpus()) { in patch_text_stop_machine()
47 while (atomic_read(&patch->cpu_count) <= num_online_cpus()) in patch_text_stop_machine()
Dhibernate.c17 WARN_ON(num_online_cpus() != 1); in save_processor_state()
/linux-6.6.21/drivers/nvdimm/
Dregion.c24 if (nd_region->num_lanes > num_online_cpus() in nd_region_probe()
28 num_online_cpus(), nd_region->num_lanes, in nd_region_probe()
/linux-6.6.21/arch/arm/kernel/
Dmachine_kexec.c110 atomic_set(&waiting_for_crash_ipi, num_online_cpus() - 1); in crash_smp_send_stop()
177 BUG_ON(num_online_cpus() > 1); in machine_kexec()
Dreboot.c81 _soft_restart(addr, num_online_cpus() == 1); in soft_restart()
Dhibernate.c36 WARN_ON(num_online_cpus() != 1); in save_processor_state()
/linux-6.6.21/arch/arm64/kernel/
Dpatching.c138 if (atomic_inc_return(&pp->cpu_count) == num_online_cpus()) { in aarch64_insn_patch_text_cb()
145 while (atomic_read(&pp->cpu_count) <= num_online_cpus()) in aarch64_insn_patch_text_cb()
/linux-6.6.21/arch/arm/mm/
Dl2c-common.c13 WARN_ON(num_online_cpus() > 1); in outer_disable()
/linux-6.6.21/arch/parisc/kernel/
Dsetup.c260 num_online_cpus(), num_present_cpus(), in parisc_init()
270 if (num_online_cpus() == 1) in parisc_init()
/linux-6.6.21/arch/x86/mm/
Dmmio-mod.c382 if (num_online_cpus() > 1) in enter_uniprocessor()
394 if (num_online_cpus() > 1) in enter_uniprocessor()
418 if (num_online_cpus() > 1) in enter_uniprocessor()
/linux-6.6.21/fs/smb/server/
Dcrypto_ctx.c126 if (ctx_list.avail_ctx > num_online_cpus()) { in ksmbd_find_crypto_ctx()
156 if (ctx_list.avail_ctx <= num_online_cpus()) { in ksmbd_release_crypto_ctx()
/linux-6.6.21/arch/arm/mach-omap2/
Dcpuidle44xx.c102 if (cx->mpu_state_vote == num_online_cpus()) { in omap_enter_idle_smp()
111 if (cx->mpu_state_vote == num_online_cpus()) in omap_enter_idle_smp()
/linux-6.6.21/mm/
Dswap_slots.c100 if (pages > num_online_cpus() * in check_cache_active()
107 if (pages < num_online_cpus() * THRESHOLD_DEACTIVATE_SWAP_SLOTS_CACHE) in check_cache_active()
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/
Dadf_gen2_config.c17 int cpus = num_online_cpus(); in adf_gen2_crypto_dev_config()
116 int cpus = num_online_cpus(); in adf_gen2_comp_dev_config()
/linux-6.6.21/drivers/infiniband/core/
Dcq.c307 min_t(int, dev->num_comp_vectors, num_online_cpus()); in __ib_alloc_cq_any()
387 nr_cqs = min_t(unsigned int, dev->num_comp_vectors, num_online_cpus()); in ib_alloc_cqs()
443 min_t(unsigned int, dev->num_comp_vectors, num_online_cpus()); in ib_cq_pool_get()
/linux-6.6.21/arch/mips/kernel/
Dcrash.c64 ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ in crash_kexec_prepare_cpus()
/linux-6.6.21/lib/
Dpercpu_counter.c226 int nr = num_online_cpus(); in compute_batch_value()
264 if (abs(count - rhs) > (batch * num_online_cpus())) { in __percpu_counter_compare()
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Daffinity.h76 int num_online_cpus; member
/linux-6.6.21/drivers/cpuidle/
Dcpuidle-ux500.c29 if (atomic_inc_return(&master) == num_online_cpus()) { in ux500_enter_idle()

1234567891011