Home
last modified time | relevance | path

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

1234567891011

/linux/arch/x86/kernel/
A Dsmp.c169 if (num_online_cpus() > 1) { in native_stop_other_cpus()
186 while (num_online_cpus() > 1 && timeout--) in native_stop_other_cpus()
191 if (num_online_cpus() > 1) { in native_stop_other_cpus()
211 while (num_online_cpus() > 1 && (wait || timeout--)) in native_stop_other_cpus()
/linux/kernel/sched/
A Dmembarrier.c249 if (num_online_cpus() == 1) in membarrier_global_expedited()
337 (atomic_read(&mm->mm_users) == 1 || num_online_cpus() == 1)) in membarrier_private_expedited()
431 if (atomic_read(&mm->mm_users) == 1 || num_online_cpus() == 1) { in sync_runqueues_membarrier_state()
607 if (num_online_cpus() > 1) in SYSCALL_DEFINE3()
/linux/arch/arm/mach-imx/
A Dcpuidle-imx6q.c23 if (++num_idle_cpus == num_online_cpus()) in imx6q_enter_wait()
32 if (num_idle_cpus-- == num_online_cpus()) in imx6q_enter_wait()
/linux/arch/riscv/kernel/
A Dsmp.c233 if (num_online_cpus() > 1) { in smp_send_stop()
246 while (num_online_cpus() > 1 && timeout--) in smp_send_stop()
249 if (num_online_cpus() > 1) in smp_send_stop()
/linux/arch/x86/kernel/apic/
A Dipi.c41 if (apic_ipi_shorthand_off || num_online_cpus() == 1 || in apic_smt_update()
51 if (num_online_cpus() < 2) in apic_send_IPI_allbutself()
89 else if (num_online_cpus() > 1) in native_send_call_func_ipi()
/linux/arch/arm/kernel/
A Dmachine_kexec.c103 atomic_set(&waiting_for_crash_ipi, num_online_cpus() - 1); in crash_smp_send_stop()
163 BUG_ON(num_online_cpus() > 1); in machine_kexec()
A Dsmp.c491 num_online_cpus(), in smp_cpus_done()
770 while (num_online_cpus() > 1 && timeout--) in smp_send_stop()
773 if (num_online_cpus() > 1) in smp_send_stop()
A Dreboot.c80 _soft_restart(addr, num_online_cpus() == 1); in soft_restart()
A Dhibernate.c36 WARN_ON(num_online_cpus() != 1); in save_processor_state()
/linux/drivers/nvdimm/
A Dregion.c19 if (nd_region->num_lanes > num_online_cpus() in nd_region_probe()
23 num_online_cpus(), nd_region->num_lanes, in nd_region_probe()
/linux/arch/x86/mm/
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()
/linux/arch/arm/mm/
A Dl2c-common.c13 WARN_ON(num_online_cpus() > 1); in outer_disable()
/linux/fs/ksmbd/
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()
/linux/arch/arm/mach-omap2/
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()
/linux/arch/parisc/kernel/
A Dsetup.c318 num_online_cpus(), num_present_cpus(), in parisc_init()
328 if (num_online_cpus() == 1) in parisc_init()
/linux/lib/
A Dpercpu_counter.c189 int nr = num_online_cpus(); in compute_batch_value()
227 if (abs(count - rhs) > (batch * num_online_cpus())) { in __percpu_counter_compare()
/linux/mm/
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()
/linux/drivers/infiniband/core/
A Dcq.c308 min_t(int, dev->num_comp_vectors, num_online_cpus()); in __ib_alloc_cq_any()
388 nr_cqs = min_t(unsigned int, dev->num_comp_vectors, num_online_cpus()); in ib_alloc_cqs()
444 min_t(unsigned int, dev->num_comp_vectors, num_online_cpus()); in ib_cq_pool_get()
/linux/drivers/crypto/cavium/nitrox/
A Dnitrox_isr.c347 cpu = qvec->ring % num_online_cpus(); in nitrox_register_interrupts()
368 cpu = num_online_cpus(); in nitrox_register_interrupts()
446 cpu = num_online_cpus(); in nitrox_sriov_register_interupts()
/linux/arch/mips/kernel/
A Dcrash.c64 ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ in crash_kexec_prepare_cpus()
/linux/kernel/time/
A Dtick-common.c529 if (tick_freeze_depth == num_online_cpus()) { in tick_freeze()
555 if (tick_freeze_depth == num_online_cpus()) { in tick_unfreeze()
/linux/kernel/kcsan/
A Dkcsan_test.c1039 if (num_online_cpus() < min_required_cpus) { in nthreads_gen_params()
1041 num_online_cpus(), min_required_cpus); in nthreads_gen_params()
1043 } else if (nthreads >= num_online_cpus() - min_unused_cpus) { in nthreads_gen_params()
1045 nthreads = -(num_online_cpus() - min_unused_cpus); in nthreads_gen_params()
1047 -nthreads, num_online_cpus()); in nthreads_gen_params()
/linux/drivers/infiniband/hw/hfi1/
A Daffinity.h76 int num_online_cpus; member
/linux/drivers/cpuidle/
A Dcpuidle-ux500.c29 if (atomic_inc_return(&master) == num_online_cpus()) { in ux500_enter_idle()
/linux/arch/sparc/kernel/
A Dcpu.c346 num_online_cpus() in show_cpuinfo()
394 num_online_cpus(), in show_cpuinfo()

Completed in 35 milliseconds

1234567891011