/linux/kernel/time/ |
H A D | tick-common.c | 110 int cpu = smp_processor_id(); in tick_handle_periodic() 264 int cpu = smp_processor_id(); in tick_setup_device() 315 if (!tick_check_percpu(curdev, newdev, smp_processor_id())) in tick_check_preferred() 331 cpu = smp_processor_id(); in tick_check_replacement() 388 WARN_ON_ONCE(tick_do_timer_cpu == smp_processor_id()); in tick_broadcast_oneshot_control() 530 smp_processor_id(), true); 559 smp_processor_id(), false);
|
H A D | tick-broadcast.c | 348 int cpu = smp_processor_id(); in tick_do_broadcast() 459 cpu = smp_processor_id(); in tick_broadcast_control() 576 return cpumask_test_cpu(smp_processor_id(), tick_broadcast_mask); in tick_resume_check_broadcast() 629 return arch_test_bit(smp_processor_id(), cpumask_bits(tick_broadcast_force_mask)); in tick_check_broadcast_expired() 631 return cpumask_test_cpu(smp_processor_id(), tick_broadcast_force_mask); in tick_check_broadcast_expired() 672 if (cpumask_test_cpu(smp_processor_id(), tick_broadcast_oneshot_mask)) { in tick_check_oneshot_broadcast_this_cpu() 731 cpumask_clear_cpu(smp_processor_id(), tick_broadcast_pending_mask); in tick_handle_oneshot_broadcast() 788 if (broadcast_needs_cpu(bc, smp_processor_id())) in broadcast_shutdown_local() 966 int cpu = smp_processor_id(); in __tick_broadcast_oneshot_control() 1027 int cpu = smp_processor_id(); in tick_broadcast_setup_oneshot() [all …]
|
/linux/arch/arm64/kernel/ |
H A D | smp.c | 208 unsigned int cpu = smp_processor_id(); in secondary_start_kernel() 309 unsigned int cpu = smp_processor_id(); in __cpu_disable() 376 unsigned int cpu = smp_processor_id(); in cpu_die() 413 int cpu = smp_processor_id(); in cpu_die_early() 462 set_my_cpu_offset(per_cpu_offset(smp_processor_id())); in smp_prepare_boot_cpu() 789 this_cpu = smp_processor_id(); in smp_prepare_cpus() 808 if (cpu == smp_processor_id()) in smp_prepare_cpus() 868 smp_cross_call(cpumask_of(smp_processor_id()), IPI_IRQ_WORK); in arch_irq_work_raise() 888 local_cpu_stop(smp_processor_id()); in panic_smp_self_stop() 957 unsigned int cpu = smp_processor_id(); in do_handle_IPI() [all …]
|
/linux/arch/arm/kernel/ |
H A D | smp.c | 254 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 …]
|
H A D | machine_kexec.c | 84 smp_processor_id()); in machine_crash_nonpanic_core() 85 crash_save_cpu(®s, 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/drivers/irqchip/ |
H A D | irq-bcm2836.c | 47 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/arch/sh/kernel/ |
H A D | smp.c | 60 unsigned int cpu = smp_processor_id(); in smp_prepare_cpus() 73 unsigned int cpu = smp_processor_id(); in smp_prepare_boot_cpu() 126 unsigned int cpu = smp_processor_id(); in __cpu_disable() 177 unsigned int cpu = smp_processor_id(); in start_secondary() 320 smp_processor_id(), __func__, msg); in smp_message_recv() 371 if (smp_processor_id() != i) in flush_tlb_mm() 408 if (smp_processor_id() != i) in flush_tlb_range() 451 if (smp_processor_id() != i) in flush_tlb_page()
|
/linux/arch/mips/kernel/ |
H A D | cevt-sb1250.c | 33 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()
|
H A D | cevt-bcm1480.c | 33 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()
|
H A D | machine_kexec.c | 118 int cpu = smp_processor_id(); in kexec_shutdown_secondary() 180 set_cpu_online(smp_processor_id(), true); in kexec_reboot() 186 if (smp_processor_id() > 0) { in kexec_reboot() 246 set_cpu_online(smp_processor_id(), false); in machine_kexec()
|
/linux/arch/x86/kernel/ |
H A D | tsc_sync.c | 77 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() 211 tsc_sanitize_first_cpu(cur, bootval, smp_processor_id(), in tsc_store_and_check_tsc_adjust() 392 smp_processor_id(), cpu); in check_tsc_sync_source() 399 smp_processor_id(), cpu); in check_tsc_sync_source() 434 unsigned int cpu = smp_processor_id(); in check_tsc_sync_target()
|
/linux/arch/powerpc/sysdev/xics/ |
H A D | icp-native.c | 50 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/arch/riscv/kernel/ |
H A D | smp.c | 70 set_cpu_online(smp_processor_id(), false); in ipi_stop() 114 send_ipi_single(smp_processor_id(), IPI_IRQ_WORK); in arch_irq_work_raise() 120 unsigned int cpu = smp_processor_id(); in handle_IPI() 259 cpumask_clear_cpu(smp_processor_id(), &mask); in smp_send_stop() 283 unsigned int this_cpu_online = cpu_online(smp_processor_id()); in num_other_online_cpus() 311 cpumask_clear_cpu(smp_processor_id(), &mask); in crash_smp_send_stop()
|
/linux/arch/arm/mm/ |
H A D | proc-v7-bugs.c | 69 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/arch/parisc/lib/ |
H A D | delay.c | 36 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/arch/x86/kernel/cpu/mce/ |
H A D | p5.c | 33 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/arch/loongarch/kernel/ |
H A D | smp.c | 226 mp_ops.send_ipi_single(smp_processor_id(), ACTION_IRQ_WORK); in arch_irq_work_raise() 233 unsigned int cpu = smp_processor_id(); in loongson_ipi_interrupt() 341 per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE; in loongson_prepare_cpus() 367 unsigned int cpu = smp_processor_id(); in loongson_init_secondary() 389 pr_info("CPU#%d finished\n", smp_processor_id()); in loongson_smp_finish() 397 unsigned int cpu = smp_processor_id(); in loongson_cpu_disable() 604 set_cpu_online(smp_processor_id(), false); in stop_this_cpu() 650 if (cpu != smp_processor_id() && cpu_context(cpu, mm)) in flush_tlb_mm() 689 if (cpu != smp_processor_id() && cpu_context(cpu, mm)) in flush_tlb_range() 735 if (cpu != smp_processor_id() && cpu_context(cpu, vma->vm_mm)) in flush_tlb_page()
|
/linux/arch/sh/mm/ |
H A D | tlbflush_32.c | 17 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/arch/powerpc/include/asm/ |
H A D | tlb.h | 56 topology_sibling_cpumask(smp_processor_id())); in mm_is_core_local() 64 return cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm)); in mm_is_thread_local() 70 cpumask_of(smp_processor_id())); in mm_is_thread_local()
|
/linux/arch/mips/loongson64/ |
H A D | smp.c | 386 int cpu = smp_processor_id(); in loongson3_ipi_interrupt() 408 unsigned int cpu = smp_processor_id(); in loongson3_init_secondary() 425 int cpu = smp_processor_id(); in loongson3_smp_finish() 432 smp_processor_id(), read_c0_status()); in loongson3_smp_finish() 497 per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE; in loongson3_prepare_cpus() 517 unsigned int cpu = smp_processor_id(); in loongson3_cpu_disable() 571 [sets] "r" (cpu_data[smp_processor_id()].dcache.sets)); in loongson3_type1_play_dead() 633 [sets] "r" (cpu_data[smp_processor_id()].dcache.sets)); in loongson3_type2_play_dead() 717 [sets] "r" (cpu_data[smp_processor_id()].dcache.sets), in loongson3_type3_play_dead() 718 [vsets] "r" (cpu_data[smp_processor_id()].vcache.sets)); in loongson3_type3_play_dead() [all …]
|
/linux/kernel/ |
H A D | watchdog.c | 169 unsigned int this_cpu = smp_processor_id(); in watchdog_hardlockup_check() 393 kcpustat_cpu_fetch(&kcpustat, smp_processor_id()); in update_cpustat() 420 smp_processor_id(), sample_period_second); in print_cpustat() 501 smp_processor_id(), HARDIRQ_PERCENT_THRESH); in print_irq_counts() 692 stop_one_cpu_nowait(smp_processor_id(), in watchdog_timer_fn() 753 smp_processor_id(), duration, in watchdog_timer_fn() 765 trigger_allbutcpu_cpu_backtrace(smp_processor_id()); in watchdog_timer_fn() 783 WARN_ON_ONCE(cpu != smp_processor_id()); in watchdog_enable() 808 WARN_ON_ONCE(cpu != smp_processor_id()); in watchdog_disable() 822 watchdog_disable(smp_processor_id()); in softlockup_stop_fn() [all …]
|
/linux/arch/mips/include/asm/ |
H A D | mmu_context.h | 49 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/arch/powerpc/platforms/cell/ |
H A D | ras.c | 54 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()
|
/linux/kernel/sched/ |
H A D | isolation.c | 45 cpu = sched_numa_find_closest(housekeeping.cpumasks[type], smp_processor_id()); in housekeeping_any_cpu() 61 return smp_processor_id(); in housekeeping_any_cpu() 144 __cpumask_set_cpu(smp_processor_id(), housekeeping_staging); in housekeeping_setup() 145 __cpumask_clear_cpu(smp_processor_id(), non_housekeeping_mask); in housekeeping_setup() 148 "using boot CPU:%d\n", smp_processor_id()); in housekeeping_setup()
|
/linux/net/iucv/ |
H A D | iucv.c | 400 int cpu = smp_processor_id(); in iucv_allow_cpu() 441 int cpu = smp_processor_id(); in iucv_block_cpu() 461 int cpu = smp_processor_id(); in iucv_declare_cpu() 516 int cpu = smp_processor_id(); in iucv_retrieve_cpu() 707 parm = iucv_param_irq[smp_processor_id()]; in iucv_sever_pathid() 877 parm = iucv_param[smp_processor_id()]; in iucv_path_accept() 925 parm = iucv_param[smp_processor_id()]; in iucv_path_connect() 985 parm = iucv_param[smp_processor_id()]; in iucv_path_quiesce() 1017 parm = iucv_param[smp_processor_id()]; in iucv_path_resume() 1046 if (iucv_active_cpu != smp_processor_id()) in iucv_path_sever() [all …]
|