Home
last modified time | relevance | path

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

12345678910

/kernel/linux/linux-5.10/arch/x86/kernel/
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()
/kernel/linux/linux-5.10/arch/arm/mach-imx/
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()
/kernel/linux/linux-5.10/arch/riscv/kernel/
Dsmp.c224 if (num_online_cpus() > 1) { in smp_send_stop()
237 while (num_online_cpus() > 1 && timeout--) in smp_send_stop()
240 if (num_online_cpus() > 1) in smp_send_stop()
Dpatch.c113 if (atomic_inc_return(&patch->cpu_count) == num_online_cpus()) { in patch_text_cb()
119 while (atomic_read(&patch->cpu_count) <= num_online_cpus()) in patch_text_cb()
/kernel/linux/linux-5.10/kernel/sched/
Dmembarrier.c112 if (num_online_cpus() == 1) in membarrier_global_expedited()
204 (atomic_read(&mm->mm_users) == 1 || num_online_cpus() == 1)) in membarrier_private_expedited()
300 if (atomic_read(&mm->mm_users) == 1 || num_online_cpus() == 1) { in sync_runqueues_membarrier_state()
478 if (num_online_cpus() > 1) in SYSCALL_DEFINE3()
/kernel/linux/linux-5.10/arch/x86/kernel/apic/
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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/arm/kernel/
Dmachine_kexec.c103 atomic_set(&waiting_for_crash_ipi, num_online_cpus() - 1); in crash_smp_send_stop()
168 BUG_ON(num_online_cpus() > 1); in machine_kexec()
Dhibernate.c36 WARN_ON(num_online_cpus() != 1); in save_processor_state()
Dreboot.c81 _soft_restart(addr, num_online_cpus() == 1); in soft_restart()
Dsmp.c482 num_online_cpus(), in smp_cpus_done()
765 while (num_online_cpus() > 1 && timeout--) in smp_send_stop()
768 if (num_online_cpus() > 1) in smp_send_stop()
/kernel/linux/linux-5.10/drivers/nvdimm/
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()
/kernel/linux/linux-5.10/arch/arm/mm/
Dl2c-common.c13 WARN_ON(num_online_cpus() > 1); in outer_disable()
/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/
Dmmu_context.c251 if (nact > num_online_cpus()) in context_check_map()
253 nact, num_online_cpus()); in context_check_map()
308 if (num_online_cpus() > 1) { in switch_mmu_context()
/kernel/linux/linux-5.10/arch/x86/mm/
Dmmio-mod.c384 if (num_online_cpus() > 1) in enter_uniprocessor()
396 if (num_online_cpus() > 1) in enter_uniprocessor()
420 if (num_online_cpus() > 1) in enter_uniprocessor()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dsetup.c320 num_online_cpus(), num_present_cpus(), in parisc_init()
330 if (num_online_cpus() == 1) in parisc_init()
/kernel/linux/linux-5.10/mm/
Dswap_slots.c101 if (pages > num_online_cpus() * in check_cache_active()
108 if (pages < num_online_cpus() * THRESHOLD_DEACTIVATE_SWAP_SLOTS_CACHE) in check_cache_active()
/kernel/linux/linux-5.10/kernel/printk/
Dprintk_safe.c274 if (num_online_cpus() > 1) in printk_safe_flush_on_panic()
282 if (num_online_cpus() > 1) in printk_safe_flush_on_panic()
/kernel/linux/linux-5.10/lib/
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()
/kernel/linux/linux-5.10/arch/mips/kernel/
Dcrash.c64 ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ in crash_kexec_prepare_cpus()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Daffinity.h117 int num_online_cpus; member
/kernel/linux/linux-5.10/drivers/cpuidle/
Dcpuidle-ux500.c29 if (atomic_inc_return(&master) == num_online_cpus()) { in ux500_enter_idle()
Dcpuidle-exynos.c65 if (num_online_cpus() > 1 || dev->cpu != 0) in exynos_enter_lowpower()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dcq.c308 min_t(int, dev->num_comp_vectors, num_online_cpus()); in __ib_alloc_cq_any()
396 nr_cqs = min_t(unsigned int, dev->num_comp_vectors, num_online_cpus()); in ib_alloc_cqs()
452 min_t(unsigned int, dev->num_comp_vectors, num_online_cpus()); in ib_cq_pool_get()

12345678910