/linux-6.6.21/arch/riscv/kernel/ |
D | smp.c | 251 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()
|
D | patch.c | 232 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/ |
D | cpuidle-imx6q.c | 24 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/ |
D | fabrics.h | 208 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/ |
D | ipi.c | 43 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/ |
D | membarrier.c | 253 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/ |
D | jump_label.c | 43 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()
|
D | hibernate.c | 17 WARN_ON(num_online_cpus() != 1); in save_processor_state()
|
/linux-6.6.21/drivers/nvdimm/ |
D | region.c | 24 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/ |
D | machine_kexec.c | 110 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()
|
D | reboot.c | 81 _soft_restart(addr, num_online_cpus() == 1); in soft_restart()
|
D | hibernate.c | 36 WARN_ON(num_online_cpus() != 1); in save_processor_state()
|
/linux-6.6.21/arch/arm64/kernel/ |
D | patching.c | 138 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/ |
D | l2c-common.c | 13 WARN_ON(num_online_cpus() > 1); in outer_disable()
|
/linux-6.6.21/arch/parisc/kernel/ |
D | setup.c | 260 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/ |
D | mmio-mod.c | 382 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/ |
D | crypto_ctx.c | 126 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/ |
D | cpuidle44xx.c | 102 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/ |
D | swap_slots.c | 100 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/ |
D | adf_gen2_config.c | 17 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/ |
D | cq.c | 307 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/ |
D | crash.c | 64 ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ in crash_kexec_prepare_cpus()
|
/linux-6.6.21/lib/ |
D | percpu_counter.c | 226 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/ |
D | affinity.h | 76 int num_online_cpus; member
|
/linux-6.6.21/drivers/cpuidle/ |
D | cpuidle-ux500.c | 29 if (atomic_inc_return(&master) == num_online_cpus()) { in ux500_enter_idle()
|