| /linux/kernel/locking/ |
| H A D | spinlock_debug.c | 62 msg, raw_smp_processor_id(), in spin_dump() 88 SPIN_BUG_ON(READ_ONCE(lock->owner_cpu) == raw_smp_processor_id(), in debug_spin_lock_before() 94 WRITE_ONCE(lock->owner_cpu, raw_smp_processor_id()); in debug_spin_lock_after() 103 SPIN_BUG_ON(lock->owner_cpu != raw_smp_processor_id(), in debug_spin_unlock() 152 msg, raw_smp_processor_id(), current->comm, in rwlock_bug() 188 RWLOCK_BUG_ON(READ_ONCE(lock->owner_cpu) == raw_smp_processor_id(), in debug_write_lock_before() 194 WRITE_ONCE(lock->owner_cpu, raw_smp_processor_id()); in debug_write_lock_after() 202 RWLOCK_BUG_ON(lock->owner_cpu != raw_smp_processor_id(), in debug_write_unlock()
|
| /linux/arch/loongarch/include/asm/ |
| H A D | cpu-info.h | 70 #define raw_current_cpu_data cpu_data[raw_smp_processor_id()] 76 #define cpu_family_string() __cpu_family[raw_smp_processor_id()] 77 #define cpu_full_name_string() __cpu_full_name[raw_smp_processor_id()]
|
| H A D | smp.h | 47 static inline int raw_smp_processor_id(void) in raw_smp_processor_id() function 57 #define raw_smp_processor_id raw_smp_processor_id macro
|
| /linux/kernel/trace/ |
| H A D | synth_event_gen_test.c | 117 vals[4] = raw_smp_processor_id(); /* cpu */ in test_gen_synth_cmd() 222 vals[4] = raw_smp_processor_id(); /* cpu */ in test_empty_synth_event() 295 vals[5] = raw_smp_processor_id(); /* cpu */ in test_create_synth_event() 348 ret = synth_event_add_next_val(raw_smp_processor_id(), &trace_state); in test_add_next_synth_val() 391 ret = synth_event_add_val("cpu", raw_smp_processor_id(), &trace_state); in test_add_synth_val() 431 (u64)raw_smp_processor_id(), /* cpu */ in test_trace_synth_event()
|
| /linux/arch/mips/include/asm/ |
| H A D | smp.h | 26 static inline int raw_smp_processor_id(void) in raw_smp_processor_id() function 36 #define raw_smp_processor_id raw_smp_processor_id macro
|
| H A D | cpu-info.h | 119 #define raw_current_cpu_data cpu_data[raw_smp_processor_id()] 127 #define cpu_name_string() __cpu_name[raw_smp_processor_id()]
|
| /linux/arch/mips/mm/ |
| H A D | fault.c | 53 printk("Cpu%d[%s:%d:%0*lx:%ld:%0*lx]\n", raw_smp_processor_id(), in __do_page_fault() 121 raw_smp_processor_id(), in __do_page_fault() 132 raw_smp_processor_id(), in __do_page_fault() 235 raw_smp_processor_id(), field, address, field, regs->cp0_epc, in __do_page_fault() 292 pgd = (pgd_t *) pgd_current[raw_smp_processor_id()] + offset; in __do_page_fault()
|
| /linux/arch/parisc/kernel/ |
| H A D | toc.c | 70 BUG_ON(regs != (struct pt_regs *)&per_cpu(toc_stack, raw_smp_processor_id())); in toc_intr() 86 kgdb_nmicallback(raw_smp_processor_id(), regs); in toc_intr() 96 if (raw_smp_processor_id() != 0) in toc_intr()
|
| /linux/kernel/bpf/ |
| H A D | percpu_freelist.c | 55 for_each_cpu_wrap(cpu, cpu_possible_mask, raw_smp_processor_id()) { in __pcpu_freelist_push() 56 if (cpu == raw_smp_processor_id()) in __pcpu_freelist_push() 106 for_each_cpu_wrap(cpu, cpu_possible_mask, raw_smp_processor_id()) { in ___pcpu_freelist_pop()
|
| /linux/arch/um/kernel/ |
| H A D | smp.c | 64 int cpu = raw_smp_processor_id(); in ipi_handler() 121 int err, cpu = raw_smp_processor_id(); in start_secondary() 139 int cpu = raw_smp_processor_id(); in uml_start_secondary()
|
| /linux/kernel/ |
| H A D | panic.c | 379 int this_cpu = raw_smp_processor_id(); in panic_try_force_cpu() 461 this_cpu = raw_smp_processor_id(); in panic_try_start() 488 return unlikely(atomic_read(&panic_cpu) == raw_smp_processor_id()); in panic_on_this_cpu() 538 trigger_allbutcpu_cpu_backtrace(raw_smp_processor_id()); in panic_trigger_all_cpu_backtrace() 644 panic_force_cpu == raw_smp_processor_id()) { in vpanic() 1042 raw_smp_processor_id(), current->comm, current->pid); in __warn() 1046 raw_smp_processor_id(), current->comm, current->pid); in __warn()
|
| /linux/arch/x86/kernel/ |
| H A D | kgdb.c | 197 int cpu = raw_smp_processor_id(); in kgdb_correct_hw_break() 298 int cpu = raw_smp_processor_id(); in kgdb_remove_all_hw_break() 384 int cpu = raw_smp_processor_id(); in kgdb_disable_hw_debug() 464 raw_smp_processor_id()); in kgdb_arch_handle_exception() 504 cpu = raw_smp_processor_id(); in kgdb_nmi_handler() 514 cpu = raw_smp_processor_id(); in kgdb_nmi_handler()
|
| /linux/include/linux/ |
| H A D | objpool.h | 178 start = raw_smp_processor_id(); in objpool_pop() 228 rc = __objpool_try_add_slot(obj, pool, raw_smp_processor_id()); in objpool_push()
|
| H A D | smp.h | 200 #define raw_smp_processor_id() 0 macro 271 #define __smp_processor_id() raw_smp_processor_id()
|
| H A D | tracepoint.h | 502 cpu_online(raw_smp_processor_id()), \ 507 cpu_online(raw_smp_processor_id()) && (PARAMS(cond)), \ 516 cpu_online(raw_smp_processor_id()), \ 521 cpu_online(raw_smp_processor_id()) && (PARAMS(cond)), \
|
| /linux/arch/x86/kernel/apic/ |
| H A D | x2apic_savic.c | 150 src_cpu = raw_smp_processor_id(); in send_ipi_allbut() 265 this_cpu = raw_smp_processor_id(); in send_ipi_mask() 309 cpu = raw_smp_processor_id(); in savic_eoi()
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | efx_common.h | 76 channel->channel, raw_smp_processor_id()); in efx_schedule_channel() 83 channel->event_test_cpu = raw_smp_processor_id(); in efx_schedule_channel_irq()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | efx_common.h | 80 channel->channel, raw_smp_processor_id()); in efx_schedule_channel() 87 channel->event_test_cpu = raw_smp_processor_id(); in efx_schedule_channel_irq()
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | idle.c | 227 int cpu = raw_smp_processor_id(); in atomic_start_thread_idle() 237 int cpu = raw_smp_processor_id(); in atomic_stop_thread_idle() 247 int cpu = raw_smp_processor_id(); in atomic_lock_thread_idle() 257 int cpu = raw_smp_processor_id(); in atomic_unlock_and_stop_thread_idle() 280 int cpu = raw_smp_processor_id(); in atomic_unlock_thread_idle() 316 int cpu = raw_smp_processor_id(); in power7_idle_insn() 610 int cpu = raw_smp_processor_id(); in power9_idle_stop() 895 int cpu = raw_smp_processor_id(); in power10_idle_stop()
|
| /linux/arch/powerpc/include/asm/ |
| H A D | smp.h | 89 #define raw_smp_processor_id() (local_paca->paca_index) macro 95 #define raw_smp_processor_id() (current_thread_info()->cpu) macro
|
| /linux/arch/sh/kernel/cpu/ |
| H A D | init.c | 322 if (raw_smp_processor_id() == 0) { in cpu_init() 350 if (raw_smp_processor_id() == 0) { in cpu_init()
|
| /linux/io_uring/ |
| H A D | sqpoll.c | 257 sqd->sq_cpu = raw_smp_processor_id(); in io_sqd_handle_event() 321 sqd->sq_cpu = raw_smp_processor_id(); in io_sq_thread() 369 sqd->sq_cpu = raw_smp_processor_id(); in io_sq_thread() 403 sqd->sq_cpu = raw_smp_processor_id(); in io_sq_thread()
|
| /linux/rust/helpers/ |
| H A D | cpu.c | 7 return raw_smp_processor_id(); in rust_helper_raw_smp_processor_id()
|
| /linux/kernel/debug/ |
| H A D | debug_core.c | 234 kgdb_nmicallback(raw_smp_processor_id(), get_irq_regs()); in kgdb_call_nmi_hook() 244 int this_cpu = raw_smp_processor_id(); in kgdb_roundup_cpus() 458 if (cpu == raw_smp_processor_id() || !IS_ENABLED(CONFIG_SMP)) { in kdb_dump_stack_on_cpu() 519 if (atomic_read(&kgdb_active) != raw_smp_processor_id()) in kgdb_reenter_check() 850 ks->cpu = raw_smp_processor_id(); in kgdb_handle_exception()
|
| /linux/arch/sparc/kernel/ |
| H A D | cpumap.h | 13 return raw_smp_processor_id(); in map_to_cpu()
|