Home
last modified time | relevance | path

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

1234567891011

/openbmc/linux/arch/riscv/kernel/
H A 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()
H A Dpatch.c240 if (atomic_inc_return(&patch->cpu_count) == num_online_cpus()) { in patch_text_cb()
254 while (atomic_read(&patch->cpu_count) <= num_online_cpus()) in patch_text_cb()
/openbmc/linux/arch/arm/mach-imx/
H A 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()
/openbmc/linux/drivers/nvme/host/
H A Dfabrics.h201 return min(opts->nr_io_queues, num_online_cpus()) + in nvmf_nr_io_queues()
202 min(opts->nr_write_queues, num_online_cpus()) + in nvmf_nr_io_queues()
203 min(opts->nr_poll_queues, num_online_cpus()); in nvmf_nr_io_queues()
/openbmc/linux/arch/x86/kernel/apic/
H A 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()
/openbmc/linux/kernel/sched/
H A 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()
/openbmc/linux/arch/xtensa/kernel/
H A 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()
H A Dhibernate.c17 WARN_ON(num_online_cpus() != 1); in save_processor_state()
/openbmc/linux/arch/arm/kernel/
H A 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()
H A Dreboot.c81 _soft_restart(addr, num_online_cpus() == 1); in soft_restart()
H A Dhibernate.c36 WARN_ON(num_online_cpus() != 1); in save_processor_state()
H A Dsmp.c491 num_online_cpus(), in smp_cpus_done()
764 while (num_online_cpus() > 1 && timeout--) in smp_send_stop()
767 if (num_online_cpus() > 1) in smp_send_stop()
/openbmc/linux/arch/arm64/kernel/
H A 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()
/openbmc/linux/drivers/nvdimm/
H A 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()
/openbmc/linux/arch/arm/mm/
H A Dl2c-common.c13 WARN_ON(num_online_cpus() > 1); in outer_disable()
/openbmc/linux/arch/parisc/kernel/
H A Dsetup.c260 num_online_cpus(), num_present_cpus(), in parisc_init()
270 if (num_online_cpus() == 1) in parisc_init()
/openbmc/linux/arch/x86/mm/
H A 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()
/openbmc/linux/fs/smb/server/
H A 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()
/openbmc/linux/arch/arm/mach-omap2/
H A 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()
/openbmc/linux/mm/
H A 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()
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A 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()
/openbmc/linux/drivers/infiniband/core/
H A 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()
/openbmc/linux/lib/
H A 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()
/openbmc/linux/arch/mips/kernel/
H A Dcrash.c64 ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ in crash_kexec_prepare_cpus()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Daffinity.h76 int num_online_cpus; member

1234567891011