Home
last modified time | relevance | path

Searched refs:smp_processor_id (Results 1 – 25 of 704) sorted by relevance

12345678910>>...29

/Linux-v6.6/kernel/time/
Dtick-common.c109 int cpu = smp_processor_id(); in tick_handle_periodic()
187 WARN_ON(tick_do_timer_cpu != smp_processor_id()); in giveup_do_timer()
194 int cpu = smp_processor_id(); in tick_take_do_timer_from_boot()
279 int cpu = smp_processor_id(); in tick_install_replacement()
330 if (!tick_check_percpu(curdev, newdev, smp_processor_id())) in tick_check_replacement()
346 cpu = smp_processor_id(); in tick_check_new_device()
409 if (tick_do_timer_cpu == smp_processor_id()) in tick_handover_do_timer()
530 smp_processor_id(), true); in tick_freeze()
559 smp_processor_id(), false); in tick_unfreeze()
/Linux-v6.6/arch/riscv/kernel/
Dsmp.c66 set_cpu_online(smp_processor_id(), false); in ipi_stop()
110 send_ipi_single(smp_processor_id(), IPI_IRQ_WORK); in arch_irq_work_raise()
129 ipi_cpu_crash_stop(smp_processor_id(), get_irq_regs()); in handle_IPI()
140 pr_warn("CPU%d: unhandled IPI%d\n", smp_processor_id(), ipi); in handle_IPI()
255 cpumask_clear_cpu(smp_processor_id(), &mask); in smp_send_stop()
279 unsigned int this_cpu_online = cpu_online(smp_processor_id()); in num_other_online_cpus()
307 cpumask_clear_cpu(smp_processor_id(), &mask); in crash_smp_send_stop()
/Linux-v6.6/arch/arm64/kernel/
Dsmp.c200 unsigned int cpu = smp_processor_id(); in secondary_start_kernel()
294 unsigned int cpu = smp_processor_id(); in __cpu_disable()
361 unsigned int cpu = smp_processor_id(); in cpu_die()
398 int cpu = smp_processor_id(); in cpu_die_early()
447 set_my_cpu_offset(per_cpu_offset(smp_processor_id())); in smp_prepare_boot_cpu()
723 this_cpu = smp_processor_id(); in smp_prepare_cpus()
744 if (cpu == smp_processor_id()) in smp_prepare_cpus()
810 smp_cross_call(cpumask_of(smp_processor_id()), IPI_IRQ_WORK); in arch_irq_work_raise()
816 set_cpu_online(smp_processor_id(), false); in local_cpu_stop()
862 unsigned int cpu = smp_processor_id(); in do_handle_IPI()
[all …]
/Linux-v6.6/arch/ia64/kernel/
Dsmp.c78 set_cpu_online(smp_processor_id(), false); in stop_this_cpu()
159 if (i != smp_processor_id()) in send_IPI_allbutself()
196 send_IPI_single(smp_processor_id(), op); in send_IPI_self()
210 self_cpu = smp_processor_id(); in kdump_smp_send_init()
248 ia64_fetchadd(1, &local_tlb_flush_counts[smp_processor_id()].count, acq); in smp_local_flush_tlb()
262 mycpu = smp_processor_id(); in smp_flush_tlb_cpumask()
/Linux-v6.6/arch/mips/kernel/
Dcevt-bcm1480.c33 unsigned int cpu = smp_processor_id(); in sibyte_set_periodic()
47 unsigned int cpu = smp_processor_id(); in sibyte_shutdown()
59 unsigned int cpu = smp_processor_id(); in sibyte_next_event()
74 unsigned int cpu = smp_processor_id(); in sibyte_counter_handler()
98 unsigned int cpu = smp_processor_id(); in sb1480_clockevent_init()
Dcevt-sb1250.c33 cfg = IOADDR(A_SCD_TIMER_REGISTER(smp_processor_id(), R_SCD_TIMER_CFG)); in sibyte_shutdown()
43 unsigned int cpu = smp_processor_id(); in sibyte_set_periodic()
58 unsigned int cpu = smp_processor_id(); in sibyte_next_event()
73 unsigned int cpu = smp_processor_id(); in sibyte_counter_handler()
97 unsigned int cpu = smp_processor_id(); in sb1250_clockevent_init()
/Linux-v6.6/drivers/irqchip/
Dirq-bcm2836.c47 smp_processor_id()); in bcm2836_arm_irqchip_mask_timer_irq()
54 smp_processor_id()); in bcm2836_arm_irqchip_unmask_timer_irq()
65 writel(1 << smp_processor_id(), intc.base + LOCAL_PM_ROUTING_CLR); in bcm2836_arm_irqchip_mask_pmu_irq()
70 writel(1 << smp_processor_id(), intc.base + LOCAL_PM_ROUTING_SET); in bcm2836_arm_irqchip_unmask_pmu_irq()
139 int cpu = smp_processor_id(); in bcm2836_arm_irqchip_handle_irq()
156 int cpu = smp_processor_id(); in bcm2836_arm_irqchip_handle_ipi()
172 int cpu = smp_processor_id(); in bcm2836_arm_irqchip_ipi_ack()
/Linux-v6.6/arch/arm/kernel/
Dsmp.c254 unsigned int cpu = smp_processor_id(); in __cpu_disable()
320 unsigned int cpu = smp_processor_id(); in arch_cpu_idle_dead()
432 cpu = smp_processor_id(); in secondary_start_kernel()
500 set_my_cpu_offset(per_cpu_offset(smp_processor_id())); in smp_prepare_boot_cpu()
509 smp_store_cpu_info(smp_processor_id()); in smp_prepare_cpus()
582 smp_cross_call(cpumask_of(smp_processor_id()), IPI_IRQ_WORK); in arch_irq_work_raise()
635 unsigned int cpu = smp_processor_id(); in do_handle_IPI()
744 ipi_setup(smp_processor_id()); in set_smp_ipi_range()
758 cpumask_clear_cpu(smp_processor_id(), &mask); in smp_send_stop()
780 smp_processor_id()); in panic_smp_self_stop()
[all …]
Dmachine_kexec.c84 smp_processor_id()); in machine_crash_nonpanic_core()
85 crash_save_cpu(&regs, smp_processor_id()); in machine_crash_nonpanic_core()
88 set_cpu_online(smp_processor_id(), false); in machine_crash_nonpanic_core()
158 crash_save_cpu(regs, smp_processor_id()); in machine_crash_shutdown()
/Linux-v6.6/arch/sh/kernel/
Dsmp.c58 unsigned int cpu = smp_processor_id(); in smp_prepare_cpus()
71 unsigned int cpu = smp_processor_id(); in smp_prepare_boot_cpu()
124 unsigned int cpu = smp_processor_id(); in __cpu_disable()
175 unsigned int cpu = smp_processor_id(); in start_secondary()
318 smp_processor_id(), __func__, msg); in smp_message_recv()
367 if (smp_processor_id() != i) in flush_tlb_mm()
404 if (smp_processor_id() != i) in flush_tlb_range()
447 if (smp_processor_id() != i) in flush_tlb_page()
/Linux-v6.6/arch/parisc/lib/
Ddelay.c36 cpu = smp_processor_id(); in __cr16_delay()
58 if (unlikely(cpu != smp_processor_id())) { in __cr16_delay()
60 cpu = smp_processor_id(); in __cr16_delay()
/Linux-v6.6/arch/loongarch/kernel/
Dmachine_kexec.c114 set_cpu_online(smp_processor_id(), true); in kexec_reboot()
127 if (smp_processor_id() > 0) { in kexec_reboot()
143 int cpu = smp_processor_id(); in kexec_shutdown_secondary()
160 int cpu = smp_processor_id(); in crash_shutdown_secondary()
246 crashing_cpu = smp_processor_id(); in machine_crash_shutdown()
285 set_cpu_online(smp_processor_id(), false); in machine_kexec()
Dsmp.c165 unsigned int cpu = smp_processor_id(); in loongson_ipi_interrupt()
238 per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE; in loongson_prepare_cpus()
264 unsigned int cpu = smp_processor_id(); in loongson_init_secondary()
286 pr_info("CPU#%d finished\n", smp_processor_id()); in loongson_smp_finish()
294 unsigned int cpu = smp_processor_id(); in loongson_cpu_disable()
507 cpu = smp_processor_id(); in start_secondary()
549 set_cpu_online(smp_processor_id(), false); in stop_this_cpu()
595 if (cpu != smp_processor_id() && cpu_context(cpu, mm)) in flush_tlb_mm()
634 if (cpu != smp_processor_id() && cpu_context(cpu, mm)) in flush_tlb_range()
680 if (cpu != smp_processor_id() && cpu_context(cpu, vma->vm_mm)) in flush_tlb_page()
/Linux-v6.6/arch/powerpc/sysdev/xics/
Dicp-native.c50 int cpu = smp_processor_id(); in icp_native_get_xirr()
63 int cpu = smp_processor_id(); in icp_native_set_xirr()
70 int cpu = smp_processor_id(); in icp_native_set_cppr()
97 int cpu = smp_processor_id(); in icp_native_teardown_cpu()
182 int cpu = smp_processor_id(); in icp_native_flush_interrupt()
202 int cpu = smp_processor_id(); in icp_native_ipi_action()
/Linux-v6.6/arch/x86/kernel/
Dtsc_sync.c77 smp_processor_id(), adj->adjusted, curval); in tsc_verify_tsc_adjust()
171 tsc_sanitize_first_cpu(cur, bootval, smp_processor_id(), bootcpu); in tsc_store_and_check_tsc_adjust()
183 unsigned int refcpu, cpu = smp_processor_id(); in tsc_store_and_check_tsc_adjust()
213 tsc_sanitize_first_cpu(cur, bootval, smp_processor_id(), in tsc_store_and_check_tsc_adjust()
394 smp_processor_id(), cpu); in check_tsc_sync_source()
401 smp_processor_id(), cpu); in check_tsc_sync_source()
436 unsigned int cpu = smp_processor_id(); in check_tsc_sync_target()
/Linux-v6.6/arch/x86/kernel/cpu/mce/
Dp5.c33 smp_processor_id(), loaddr, lotype); in pentium_machine_check()
37 smp_processor_id()); in pentium_machine_check()
65 smp_processor_id()); in intel_p5_mcheck_init()
/Linux-v6.6/arch/arm/mm/
Dproc-v7-bugs.c69 int cpu = smp_processor_id(); in spectre_v2_install_workaround()
104 smp_processor_id(), spectre_v2_method); in spectre_v2_install_workaround()
202 smp_processor_id()); in spectre_bhb_install_workaround()
213 smp_processor_id(), spectre_bhb_method_name(method)); in spectre_bhb_install_workaround()
264 pr_err("CPU%u: %s", smp_processor_id(), msg); in cpu_v7_check_auxcr_set()
/Linux-v6.6/arch/powerpc/kexec/
Dcrash.c70 if (crash_shutdown_cpu == smp_processor_id()) in handle_fault()
82 int cpu = smp_processor_id(); in crash_ipi_callback()
170 crash_shutdown_cpu = smp_processor_id(); in crash_kexec_prepare_cpus()
288 crashing_cpu = smp_processor_id(); in crash_kexec_prepare()
375 crash_shutdown_cpu = smp_processor_id(); in default_machine_crash_shutdown()
/Linux-v6.6/arch/powerpc/include/asm/
Dtlb.h54 topology_sibling_cpumask(smp_processor_id())); in mm_is_core_local()
62 return cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm)); in mm_is_thread_local()
68 cpumask_of(smp_processor_id())); in mm_is_thread_local()
/Linux-v6.6/arch/sh/mm/
Dtlbflush_32.c17 unsigned int cpu = smp_processor_id(); in local_flush_tlb_page()
43 unsigned int cpu = smp_processor_id(); in local_flush_tlb_range()
80 unsigned int cpu = smp_processor_id(); in local_flush_tlb_kernel_range()
108 unsigned int cpu = smp_processor_id(); in local_flush_tlb_mm()
/Linux-v6.6/kernel/
Dwatchdog_perf.c104 watchdog_hardlockup_check(smp_processor_id(), regs); in watchdog_overflow_callback()
141 WARN_ON_ONCE(cpu != smp_processor_id()); in watchdog_hardlockup_enable()
162 WARN_ON_ONCE(cpu != smp_processor_id()); in watchdog_hardlockup_disable()
168 cpumask_set_cpu(smp_processor_id(), &dead_events_mask); in watchdog_hardlockup_disable()
/Linux-v6.6/kernel/sched/
Disolation.c45 cpu = sched_numa_find_closest(housekeeping.cpumasks[type], smp_processor_id()); in housekeeping_any_cpu()
52 return smp_processor_id(); in housekeeping_any_cpu()
133 __cpumask_set_cpu(smp_processor_id(), housekeeping_staging); in housekeeping_setup()
134 __cpumask_clear_cpu(smp_processor_id(), non_housekeeping_mask); in housekeeping_setup()
137 "using boot CPU:%d\n", smp_processor_id()); in housekeeping_setup()
/Linux-v6.6/arch/mips/include/asm/
Dmmu_context.h49 write_c0_xcontext((unsigned long) smp_processor_id() << \
68 write_c0_context((unsigned long) smp_processor_id() << \
158 unsigned int cpu = smp_processor_id(); in switch_mm()
196 cpu = smp_processor_id(); in drop_mmu_context()
/Linux-v6.6/arch/arc/include/asm/
Dmmu_context.h61 const unsigned int cpu = smp_processor_id(); in get_new_mmu_context()
125 asid_mm(mm, smp_processor_id()) = MM_CTXT_NO_ASID; in destroy_context()
135 const int cpu = smp_processor_id(); in switch_mm()
/Linux-v6.6/arch/powerpc/platforms/cell/
Dras.c54 int cpu = smp_processor_id(); in DEFINE_INTERRUPT_HANDLER()
63 int cpu = smp_processor_id(); in DEFINE_INTERRUPT_HANDLER()
75 int cpu = smp_processor_id(); in DEFINE_INTERRUPT_HANDLER()
87 int cpu = smp_processor_id(); in cbe_machine_check_handler()
284 if (sysreset_hack && (smp_processor_id() == 0)) { in cbe_sysreset_hack()

12345678910>>...29