/kvm-unit-tests/lib/ |
H A D | on-cpus.c | 55 int me = smp_processor_id(); in cpu_wait() 69 int cpu = smp_processor_id(); in do_idle() 88 if (cpu == smp_processor_id()) { in on_cpu_async() 116 int cpu, me = smp_processor_id(); in on_cpumask_async() 129 int cpu, me = smp_processor_id(); in on_cpumask()
|
/kvm-unit-tests/lib/riscv/ |
H A D | timer.c | 40 if (cpu_has_extension(smp_processor_id(), ISA_SSTC)) { in timer_start() 55 if (cpu_has_extension(smp_processor_id(), ISA_SSTC)) { in timer_stop()
|
H A D | processor.c | 90 if (cpu_has_extension(smp_processor_id(), ISA_SSTC)) { in local_hart_init()
|
/kvm-unit-tests/riscv/ |
H A D | selftest.c | 42 cpumask_set_cpu(smp_processor_id(), &cpus_alive); in check_secondary() 47 int cpu, me = smp_processor_id(); in check_smp()
|
H A D | sbi.c | 91 smp_processor_id(), current_thread_info()->hartid, ret.error); in stop_cpu() 96 int cpu, me = smp_processor_id(); in rand_online_cpu() 364 ipi_timeout[smp_processor_id()] = true; in ipi_timeout_handler() 370 ipi_received[smp_processor_id()] = true; in ipi_irq_handler() 376 int me = smp_processor_id(); in ipi_hart_wait() 417 int me = smp_processor_id(); in check_ipi() 560 int me = smp_processor_id(); in hart_check_already_started() 597 cpumask_set_cpu(smp_processor_id(), &hsm_suspend_not_supported); in hart_suspend_and_wait_ipi() 600 typestr, smp_processor_id(), hartid, ret.error); in hart_suspend_and_wait_ipi() 603 typestr, smp_processor_id(), hartid); in hart_suspend_and_wait_ipi() [all …]
|
/kvm-unit-tests/lib/arm/ |
H A D | psci.c | 56 printf("CPU%d unable to power off (error = %d)\n", smp_processor_id(), err); in cpu_psci_cpu_die() 67 printf("CPU%d unable to do system off (error = %d)\n", smp_processor_id(), err); in psci_system_off()
|
/kvm-unit-tests/lib/arm/asm/ |
H A D | smp.h | 13 #define smp_processor_id() (current_thread_info()->cpu) macro
|
H A D | gic-v3.h | 90 #define gicv3_redist_base() (gicv3_data.redist_base[smp_processor_id()]) 91 #define gicv3_sgi_base() (gicv3_data.redist_base[smp_processor_id()] + SZ_64K)
|
/kvm-unit-tests/arm/ |
H A D | psci.c | 82 int cpu = smp_processor_id(); in cpu_on_do_wake_target() 93 int cpu = smp_processor_id(); in cpu_on_target() 177 int cpu = smp_processor_id(); in cpu_off_secondary_entry()
|
H A D | gic.c | 49 cpumask_set_cpu(smp_processor_id(), &ready); in wait_on_ready() 161 int this_cpu = smp_processor_id(); in irq_handler() 225 gic_ipi_send_single(IPI_IRQ, smp_processor_id()); in gicv3_ipi_send_self() 241 int this_cpu = smp_processor_id(); in ipi_test_self() 256 int this_cpu = smp_processor_id(); in ipi_test_smp() 293 cpumask_set_cpu(smp_processor_id(), &ready); in irq_recv() 300 if (smp_processor_id() == IPI_SENDER) in ipi_test() 325 int this_cpu = smp_processor_id(); in ipi_clear_active_handler()
|
H A D | spinlock-test.c | 49 int cpu = smp_processor_id(); in test_spinlock()
|
H A D | selftest.c | 416 int cpu = smp_processor_id(); in cpu_report() 419 cpumask_set_cpu(smp_processor_id(), &valid); in cpu_report() 421 cpumask_set_cpu(smp_processor_id(), &ready); in cpu_report()
|
/kvm-unit-tests/lib/riscv/asm/ |
H A D | smp.h | 10 static inline int smp_processor_id(void) in smp_processor_id() function
|
/kvm-unit-tests/lib/powerpc/asm/ |
H A D | smp.h | 29 static inline int smp_processor_id(void) in smp_processor_id() function
|
/kvm-unit-tests/lib/powerpc/ |
H A D | smp.c | 90 rc = hcall(H_IPI, smp_processor_id(), 0xff); in extint_handler() 208 if (cpu_id == smp_processor_id()) { in start_thread() 320 if (cpu_id == smp_processor_id()) { in wait_thread()
|
H A D | processor.c | 71 smp_processor_id(), regs->trap, regs->nip, regs->msr); in do_handle_exception()
|
/kvm-unit-tests/powerpc/ |
H A D | atomics.c | 294 smp_inc_fn(smp_processor_id()); in test_smp_inc() 334 smp_lock_fn(smp_processor_id()); in test_smp_lock()
|
H A D | smp.c | 263 …report(true, "busy-loops on CPU:%d vs cpu_relax-loops on others %ld%%", smp_processor_id(), (long)… in test_relax() 314 …report(true, "busy-loops on CPU:%d vs pause_short-loops on others %ld%%", smp_processor_id(), (lon… in test_pause()
|