/linux/arch/x86/kernel/ |
A D | smp.c | 169 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 D | membarrier.c | 249 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 D | cpuidle-imx6q.c | 23 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 D | smp.c | 233 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 D | ipi.c | 41 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 D | machine_kexec.c | 103 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 D | smp.c | 491 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 D | reboot.c | 80 _soft_restart(addr, num_online_cpus() == 1); in soft_restart()
|
A D | hibernate.c | 36 WARN_ON(num_online_cpus() != 1); in save_processor_state()
|
/linux/drivers/nvdimm/ |
A D | region.c | 19 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 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/arch/arm/mm/ |
A D | l2c-common.c | 13 WARN_ON(num_online_cpus() > 1); in outer_disable()
|
/linux/fs/ksmbd/ |
A 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/arch/arm/mach-omap2/ |
A 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/arch/parisc/kernel/ |
A D | setup.c | 318 num_online_cpus(), num_present_cpus(), in parisc_init() 328 if (num_online_cpus() == 1) in parisc_init()
|
/linux/lib/ |
A D | percpu_counter.c | 189 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 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/drivers/infiniband/core/ |
A D | cq.c | 308 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 D | nitrox_isr.c | 347 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 D | crash.c | 64 ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ in crash_kexec_prepare_cpus()
|
/linux/kernel/time/ |
A D | tick-common.c | 529 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 D | kcsan_test.c | 1039 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 D | affinity.h | 76 int num_online_cpus; member
|
/linux/drivers/cpuidle/ |
A D | cpuidle-ux500.c | 29 if (atomic_inc_return(&master) == num_online_cpus()) { in ux500_enter_idle()
|
/linux/arch/sparc/kernel/ |
A D | cpu.c | 346 num_online_cpus() in show_cpuinfo() 394 num_online_cpus(), in show_cpuinfo()
|