Home
last modified time | relevance | path

Searched refs:smp_processor_id (Results 1 – 200 of 608) sorted by relevance

1234

/linux-4.1.27/arch/ia64/sn/kernel/
Dbte_error.c50 smp_processor_id())); in shub1_bte_error_handler()
55 smp_processor_id())); in shub1_bte_error_handler()
83 smp_processor_id())); in shub1_bte_error_handler()
100 err_nodepda, smp_processor_id(), in shub1_bte_error_handler()
107 BTE_PRINTK(("eh:%p:%d Cleaning up\n", err_nodepda, smp_processor_id())); in shub1_bte_error_handler()
159 smp_processor_id())); in shub2_bte_error_handler()
183 smp_processor_id())); in bte_error_handler()
197 smp_processor_id(), i)); in bte_error_handler()
228 smp_processor_id(), i)); in bte_error_handler()
/linux-4.1.27/arch/mips/kernel/
Dsmp-cmp.c61 pr_debug("SMPCMP: CPU%d: %s\n", smp_processor_id(), __func__); in cmp_smp_finish()
69 cpumask_set_cpu(smp_processor_id(), &mt_fpu_cpumask); in cmp_smp_finish()
88 pr_debug("SMPCMP: CPU%d: %s cpu %d\n", smp_processor_id(), in cmp_boot_secondary()
108 pr_debug("SMPCMP: CPU%d: %s\n", smp_processor_id(), __func__); in cmp_smp_setup()
139 smp_processor_id(), __func__, max_cpus); in cmp_prepare_cpus()
Dcevt-sb1250.c44 unsigned int cpu = smp_processor_id(); in sibyte_set_mode()
72 unsigned int cpu = smp_processor_id(); in sibyte_next_event()
87 unsigned int cpu = smp_processor_id(); in sibyte_counter_handler()
112 unsigned int cpu = smp_processor_id(); in sb1250_clockevent_init()
Dcevt-bcm1480.c46 unsigned int cpu = smp_processor_id(); in sibyte_set_mode()
74 unsigned int cpu = smp_processor_id(); in sibyte_next_event()
89 unsigned int cpu = smp_processor_id(); in sibyte_counter_handler()
114 unsigned int cpu = smp_processor_id(); in sb1480_clockevent_init()
Dsmp.c169 cpu = smp_processor_id(); in start_secondary()
219 set_cpu_online(smp_processor_id(), false); in stop_this_cpu()
340 if (cpu != smp_processor_id() && cpu_context(cpu, mm)) in flush_tlb_mm()
379 if (cpu != smp_processor_id() && cpu_context(cpu, mm)) in flush_tlb_range()
425 if (cpu != smp_processor_id() && cpu_context(cpu, vma->vm_mm)) in flush_tlb_page()
453 int cpu = smp_processor_id(); in dump_send_ipi()
487 int cpu = smp_processor_id(); in tick_broadcast_callee()
Dsmp-bmips.c242 clear_c0_cause(smp_processor_id() ? C_SW1 : C_SW0); in bmips_init_secondary()
245 write_c0_brcm_action(ACTION_CLR_IPI(smp_processor_id(), 0)); in bmips_init_secondary()
255 pr_info("SMP: CPU%d is running\n", smp_processor_id()); in bmips_smp_finish()
282 write_c0_brcm_action(ACTION_CLR_IPI(smp_processor_id(), action)); in bmips5000_ipi_interrupt()
357 unsigned int cpu = smp_processor_id(); in bmips_cpu_disable()
472 if (smp_processor_id() > 0) { in bmips_set_reset_vec_remote()
Dcrash.c20 int cpu = smp_processor_id(); in crash_shutdown_secondary()
66 crashing_cpu = smp_processor_id(); in default_machine_crash_shutdown()
Dcevt-r4k.c62 int cpu = smp_processor_id(); in c0_compare_interrupt()
179 unsigned int cpu = smp_processor_id(); in r4k_clockevent_init()
Dsmp-cps.c293 cpumask_set_cpu(smp_processor_id(), &mt_fpu_cpumask); in cps_smp_finish()
303 unsigned cpu = smp_processor_id(); in cps_cpu_disable()
334 cpu = smp_processor_id(); in play_dead()
Dpm.c45 unsigned int cpu = smp_processor_id(); in mips_cpu_restore()
Dsmp-gic.c28 smp_processor_id(), __func__, cpu, action, read_c0_status()); in gic_send_ipi_single()
/linux-4.1.27/arch/ia64/include/asm/sn/
Dsn_cpuid.h94 #define get_nasid() (sn_nodepda->phys_cpuid[smp_processor_id()].nasid)
95 #define get_subnode() (sn_nodepda->phys_cpuid[smp_processor_id()].subnode)
96 #define get_slice() (sn_nodepda->phys_cpuid[smp_processor_id()].slice)
97 #define get_cnode() (sn_nodepda->phys_cpuid[smp_processor_id()].cnode)
/linux-4.1.27/arch/m32r/kernel/
Dsmp.c156 cpumask_clear_cpu(smp_processor_id(), &cpumask); in smp_flush_cache_all()
171 clear_bit(smp_processor_id(), &flushcache_cpumask); in smp_flush_cache_all_interrupt()
254 cpu_id = smp_processor_id(); in smp_flush_tlb_mm()
324 cpu_id = smp_processor_id(); in smp_flush_tlb_page()
390 BUG_ON(cpumask_test_cpu(smp_processor_id(), &cpumask)); in flush_tlb_others()
450 int cpu_id = smp_processor_id(); in smp_invalidate_interrupt()
518 int cpu_id = smp_processor_id(); in stop_this_cpu()
658 int cpu_id = smp_processor_id(); in smp_local_timer_interrupt()
719 cpumask_clear_cpu(smp_processor_id(), &cpumask); in send_IPI_allbutself()
804 my_physid_mask = ~(1 << smp_processor_id()); in send_IPI_mask_phys()
Dsmpboot.c424 while (!cpumask_test_cpu(smp_processor_id(), &smp_commenced_mask)) in start_secondary()
459 int cpu_id = smp_processor_id(); in smp_callin()
490 int cpu_id = smp_processor_id(); in smp_online()
/linux-4.1.27/arch/arm64/mm/
Dcontext.c82 cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm)); in set_mm_context()
92 unsigned int cpu = smp_processor_id(); in reset_context()
118 cpumask_copy(mm_cpumask(mm), cpumask_of(smp_processor_id())); in set_mm_context()
135 cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm)); in __new_context()
156 asid = cpu_last_asid + smp_processor_id(); in __new_context()
/linux-4.1.27/arch/arm64/kernel/
Dsmp.c135 unsigned int cpu = smp_processor_id(); in secondary_start_kernel()
145 set_my_cpu_offset(per_cpu_offset(smp_processor_id())); in secondary_start_kernel()
217 unsigned int cpu = smp_processor_id(); in __cpu_disable()
290 unsigned int cpu = smp_processor_id(); in cpu_die()
318 set_my_cpu_offset(per_cpu_offset(smp_processor_id())); in smp_prepare_boot_cpu()
436 smp_store_cpu_info(smp_processor_id()); in smp_prepare_cpus()
460 if (cpu == smp_processor_id()) in smp_prepare_cpus()
536 smp_cross_call(cpumask_of(smp_processor_id()), IPI_IRQ_WORK); in arch_irq_work_raise()
568 unsigned int cpu = smp_processor_id(); in handle_IPI()
639 cpumask_clear_cpu(smp_processor_id(), &mask); in smp_send_stop()
Dirq.c72 if (irqd_is_per_cpu(d) || !cpumask_test_cpu(smp_processor_id(), affinity)) in migrate_one_irq()
114 i, smp_processor_id()); in migrate_irqs()
Dfpsimd.c148 && st->cpu == smp_processor_id()) in fpsimd_thread_switch()
189 st->cpu = smp_processor_id(); in fpsimd_restore_current_state()
207 st->cpu = smp_processor_id(); in fpsimd_update_current_state()
Dcpuidle.c42 int cpu = smp_processor_id(); in arm_cpuidle_suspend()
Dperf_event.c903 smp_processor_id(), idx); in armv8pmu_counter_has_overflowed()
918 smp_processor_id(), idx); in armv8pmu_select_counter()
935 smp_processor_id(), idx); in armv8pmu_read_counter()
948 smp_processor_id(), idx); in armv8pmu_write_counter()
969 smp_processor_id(), idx); in armv8pmu_enable_counter()
984 smp_processor_id(), idx); in armv8pmu_disable_counter()
999 smp_processor_id(), idx); in armv8pmu_enable_intens()
1014 smp_processor_id(), idx); in armv8pmu_disable_intens()
/linux-4.1.27/arch/x86/mm/
Dtlb.c129 leave_mm(smp_processor_id()); in flush_tlb_func()
146 cpu = smp_processor_id(); in native_flush_tlb_others()
168 if (cpumask_any_but(mm_cpumask(mm), smp_processor_id()) < nr_cpu_ids) in flush_tlb_current_task()
201 leave_mm(smp_processor_id()); in flush_tlb_mm_range()
233 if (cpumask_any_but(mm_cpumask(mm), smp_processor_id()) < nr_cpu_ids) in flush_tlb_mm_range()
252 leave_mm(smp_processor_id()); in flush_tlb_page()
259 if (cpumask_any_but(mm_cpumask(mm), smp_processor_id()) < nr_cpu_ids) in flush_tlb_page()
270 leave_mm(smp_processor_id()); in do_flush_tlb_all()
Diomap_32.c65 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic_prot_pfn()
104 idx = type + KM_TYPE_NR * smp_processor_id(); in iounmap_atomic()
Dhighmem_32.c45 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic_prot()
80 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic()
Dkmmio.c249 addr, smp_processor_id()); in kmmio_handler()
253 addr, smp_processor_id()); in kmmio_handler()
261 smp_processor_id(), addr); in kmmio_handler()
322 smp_processor_id()); in post_kmmio_handler()
/linux-4.1.27/arch/mn10300/kernel/
Dsmp.c337 send_IPI_mask(cpumask_of(smp_processor_id()), irq); in send_IPI_self()
353 cpumask_clear_cpu(smp_processor_id(), &cpumask); in send_IPI_allbutself()
404 cpumask_clear_cpu(smp_processor_id(), &data.started); in smp_nmi_call_function()
478 atomic_set(&procindebug[smp_processor_id()], 0); in stop_this_cpu()
482 set_cpu_online(smp_processor_id(), false); in stop_this_cpu()
487 set_cpu_online(smp_processor_id(), true); in stop_this_cpu()
539 cpumask_clear_cpu(smp_processor_id(), &nmi_call_data->started); in smp_nmi_call_function_interrupt()
544 cpumask_clear_cpu(smp_processor_id(), in smp_nmi_call_function_interrupt()
582 int cpu_id = smp_processor_id(); in smp_cpu_init()
668 while (!cpumask_test_cpu(smp_processor_id(), &smp_commenced_mask)) in start_secondary()
[all …]
Dcevt-mn10300.c32 unsigned int cpu = smp_processor_id(); in next_event()
56 unsigned int cpu = smp_processor_id(); in timer_interrupt()
87 unsigned int cpu = smp_processor_id(); in init_clockevents()
110 cd->cpumask = cpumask_of(smp_processor_id()); in init_clockevents()
/linux-4.1.27/arch/ia64/kernel/
Dsmp.c79 set_cpu_online(smp_processor_id(), false); in stop_this_cpu()
160 if (i != smp_processor_id()) in send_IPI_allbutself()
197 send_IPI_single(smp_processor_id(), op); in send_IPI_self()
211 self_cpu = smp_processor_id(); in kdump_smp_send_init()
249 ia64_fetchadd(1, &local_tlb_flush_counts[smp_processor_id()].count, acq); in smp_local_flush_tlb()
263 mycpu = smp_processor_id(); in smp_flush_tlb_cpumask()
Dsmpboot.c177 cpuid = smp_processor_id(); in fix_b0_for_bsp()
344 "maxerr %lu cycles)\n", smp_processor_id(), master, delta, rt); in ia64_sync_itc()
366 cpuid = smp_processor_id(); in smp_callin()
568 set_cpu_online(smp_processor_id(), true); in smp_prepare_boot_cpu()
569 cpumask_set_cpu(smp_processor_id(), &cpu_callin_map); in smp_prepare_boot_cpu()
570 set_numa_node(cpu_to_node_map[smp_processor_id()]); in smp_prepare_boot_cpu()
571 per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE; in smp_prepare_boot_cpu()
652 int cpu = smp_processor_id(); in __cpu_disable()
Dtime.c153 if (cpu_is_offline(smp_processor_id())) { in timer_interrupt()
175 if (smp_processor_id() == time_keeper_id) in timer_interrupt()
216 int cpu = smp_processor_id(); in ia64_cpu_local_tick()
291 "ITC freq=%lu.%03luMHz", smp_processor_id(), in ia64_init_itm()
340 paravirt_init_missing_ticks_accounting(smp_processor_id()); in ia64_init_itm()
Dmca.c338 if (monarch_cpu == smp_processor_id()) in ia64_mca_spin()
473 smp_processor_id(), in ia64_mca_log_sal_error_record()
539 __func__, cpe_irq, smp_processor_id()); in ia64_mca_cpe_int_handler()
645 __func__, smp_processor_id(), IA64_CMC_VECTOR); in ia64_mca_cmc_vector_setup()
648 __func__, smp_processor_id(), ia64_getreg(_IA64_REG_CR_CMCV)); in ia64_mca_cmc_vector_setup()
674 __func__, smp_processor_id(), cmcv.cmcv_vector); in ia64_mca_cmc_vector_disable()
700 __func__, smp_processor_id(), cmcv.cmcv_vector); in ia64_mca_cmc_vector_enable()
779 int cpu = smp_processor_id(); in ia64_mca_rendez_int_handler()
986 int cpu = smp_processor_id(); in ia64_mca_modify_original_stack()
1158 smp_processor_id(), type, msg); in ia64_mca_modify_original_stack()
[all …]
Dirq.c34 printk(KERN_ERR "Unexpected irq vector 0x%x on CPU %u!\n", irq, smp_processor_id()); in ack_bad_irq()
161 if (smp_processor_id() == time_keeper_id) { in fixup_irqs()
Dperfmon_default_smpl.c27 …if (unlikely(pfm_sysctl.debug >0)) { printk("%s.%d: CPU%d ", __func__, __LINE__, smp_processor_id(…
32 …ysctl.debug_ovfl >0)) { printk("%s.%d: CPU%d ", __func__, __LINE__, smp_processor_id()); printk a;…
169 ent->cpu = smp_processor_id(); in default_handler()
Dcrash.c62 int cpu = smp_processor_id(); in crash_save_this_cpu()
163 cpuid = smp_processor_id(); in kdump_cpu_freeze()
Dirq_ia64.c310 if (unlikely(cpumask_test_cpu(smp_processor_id(), &cfg->old_domain))) in irq_complete_move()
322 int me = smp_processor_id(); in smp_irq_move_cleanup_interrupt()
495 smp_processor_id()); in ia64_handle_irq()
561 smp_processor_id()); in ia64_process_pending_intr()
/linux-4.1.27/arch/powerpc/sysdev/xics/
Dicp-native.c54 int cpu = smp_processor_id(); in icp_native_get_xirr()
67 int cpu = smp_processor_id(); in icp_native_set_xirr()
74 int cpu = smp_processor_id(); in icp_native_set_cppr()
101 int cpu = smp_processor_id(); in icp_native_teardown_cpu()
151 (cpumask_test_cpu(cpu, cpu_sibling_mask(smp_processor_id())))) in icp_native_cause_ipi()
171 int cpu = smp_processor_id(); in icp_native_flush_interrupt()
191 int cpu = smp_processor_id(); in icp_native_ipi_action()
Dicp-hv.c89 int cpu = smp_processor_id(); in icp_hv_teardown_cpu()
148 int cpu = smp_processor_id(); in icp_hv_ipi_action()
/linux-4.1.27/arch/parisc/lib/
Ddelay.c37 cpu = smp_processor_id(); in __cr16_delay()
59 if (unlikely(cpu != smp_processor_id())) { in __cr16_delay()
61 cpu = smp_processor_id(); in __cr16_delay()
/linux-4.1.27/arch/tile/kernel/
Dsmpboot.c41 int cpu = smp_processor_id(); in smp_prepare_boot_cpu()
60 int boot_cpu = smp_processor_id(); in smp_prepare_cpus()
148 cpuid = smp_processor_id(); in start_secondary()
200 notify_cpu_starting(smp_processor_id()); in online_secondary()
202 set_cpu_online(smp_processor_id(), 1); in online_secondary()
Dsmp.c78 int my_cpu = smp_processor_id(); in send_IPI_many()
94 cpumask_clear_cpu(smp_processor_id(), &mask); in send_IPI_allbutself()
112 set_cpu_online(smp_processor_id(), 0); in smp_stop_cpu_interrupt()
200 send_IPI_single(smp_processor_id(), MSG_TAG_IRQ_WORK); in arch_irq_work_raise()
222 int cpu = smp_processor_id(); in ipi_init()
/linux-4.1.27/arch/sh/kernel/
Dsmp.c59 unsigned int cpu = smp_processor_id(); in smp_prepare_cpus()
72 unsigned int cpu = smp_processor_id(); in smp_prepare_boot_cpu()
125 unsigned int cpu = smp_processor_id(); in __cpu_disable()
179 unsigned int cpu = smp_processor_id(); in start_secondary()
320 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()
Dirq.c75 irqctx = hardirq_ctx[smp_processor_id()]; in handle_one_irq()
157 irqctx = softirq_ctx[smp_processor_id()]; in do_softirq_own_stack()
214 irq_ctx_init(smp_processor_id()); in init_IRQ()
225 unsigned int irq, cpu = smp_processor_id(); in migrate_irqs()
Didle.c57 set_cpu_online(smp_processor_id(), false); in stop_this_cpu()
/linux-4.1.27/arch/mn10300/include/asm/
Dmmu_context.h57 #define mm_context(mm) (mm->context.tlbpid[smp_processor_id()])
65 unsigned long *pmc = &mmu_context_cache[smp_processor_id()]; in allocate_mmu_context()
90 cache = mmu_context_cache[smp_processor_id()]; in get_mmu_context()
146 int cpu = smp_processor_id(); in switch_mm()
Dhighmem.h83 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic()
109 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic()
/linux-4.1.27/arch/mips/sgi-ip27/
Dip27-irq.c88 cpuid_t cpu = smp_processor_id(); in ip27_do_irq_mask0()
131 cpuid_t cpu = smp_processor_id(); in ip27_do_irq_mask1()
154 panic("CPU %d got a profiling interrupt", smp_processor_id()); in ip27_prof_timer()
159 panic("CPU %d got a hub error interrupt", smp_processor_id()); in ip27_hub_error()
186 int cpu = smp_processor_id(); in install_ipi()
Dip27-timer.c56 unsigned int cpu = smp_processor_id(); in rt_next_event()
80 unsigned int cpu = smp_processor_id(); in hub_rt_counter_handler()
112 unsigned int cpu = smp_processor_id(); in hub_rt_clock_event_init()
200 printk("CPU %d clock is %dMHz.\n", smp_processor_id(), cpu->cpu_speed); in cpu_time_init()
Dip27-xtalk.c35 smp_processor_id(), nasid, widget, partnum); in probe_one_port()
121 smp_processor_id(), nasid, partnum); in xtalk_probe_node()
Dip27-init.c63 cpumask_set_cpu(smp_processor_id(), &hub->h_cpus); in per_hub_init()
115 int cpu = smp_processor_id(); in per_cpu_init()
Dip27-reset.c42 printk("Reboot started from CPU %d\n", smp_processor_id()); in ip27_machine_restart()
/linux-4.1.27/arch/x86/kernel/cpu/mcheck/
Dp5.c32 smp_processor_id(), loaddr, lotype); in pentium_machine_check()
37 smp_processor_id()); in pentium_machine_check()
72 smp_processor_id()); in intel_p5_mcheck_init()
Dtherm_throt.c154 unsigned int this_cpu = smp_processor_id(); in therm_throt_process()
213 unsigned int this_cpu = smp_processor_id(); in thresh_event_valid()
421 smp_processor_id()); in unexpected_thermal_interrupt()
471 unsigned int cpu = smp_processor_id(); in intel_init_thermal()
Dmce-inject.c85 int cpu = smp_processor_id(); in mce_raise_notify()
99 int cpu = smp_processor_id(); in mce_irq_ipi()
/linux-4.1.27/kernel/sched/
Didle.c49 trace_cpu_idle_rcuidle(0, smp_processor_id()); in cpu_idle_poll()
54 trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, smp_processor_id()); in cpu_idle_poll()
226 if (cpu_is_offline(smp_processor_id())) { in cpu_idle_loop()
228 (void *)(long)smp_processor_id()); in cpu_idle_loop()
Dclock.c308 if (cpu != smp_processor_id()) in sched_clock_cpu()
344 sched_clock_cpu(smp_processor_id()); in sched_clock_idle_sleep_event()
/linux-4.1.27/arch/mn10300/mm/
Dtlb-smp.c106 BUG_ON(cpumask_test_cpu(smp_processor_id(), &cpumask)); in flush_tlb_others()
149 cpumask_clear_cpu(smp_processor_id(), &cpu_mask); in flush_tlb_mm()
168 cpumask_clear_cpu(smp_processor_id(), &cpu_mask); in flush_tlb_current_task()
189 cpumask_clear_cpu(smp_processor_id(), &cpu_mask); in flush_tlb_page()
Dcache-smp.c77 cpumask_clear_cpu(smp_processor_id(), &smp_cache_ipi_map); in smp_cache_interrupt()
98 cpumask_clear_cpu(smp_processor_id(), &smp_cache_ipi_map); in smp_cache_call()
/linux-4.1.27/arch/powerpc/kernel/
Dcrash.c60 if (crash_shutdown_cpu == smp_processor_id()) in handle_fault()
72 int cpu = smp_processor_id(); in crash_ipi_callback()
152 crash_shutdown_cpu = smp_processor_id(); in crash_kexec_prepare_cpus()
323 crashing_cpu = smp_processor_id(); in default_machine_crash_shutdown()
348 crash_shutdown_cpu = smp_processor_id(); in default_machine_crash_shutdown()
Ddbell.c27 smp_muxed_ipi_set_data(smp_processor_id(), tag); in doorbell_setup_this_cpu()
45 kvmppc_set_host_ipi(smp_processor_id(), 0); in doorbell_exception()
Dtau_6xx.c125 int cpu = smp_processor_id(); in TAUException()
145 cpu = smp_processor_id(); in tau_timeout()
209 unsigned long cpu = smp_processor_id(); in TAU_init_smp()
Dsmp.c336 set_cpu_online(smp_processor_id(), false); in stop_this_cpu()
369 BUG_ON(boot_cpuid != smp_processor_id()); in smp_prepare_cpus()
399 BUG_ON(smp_processor_id() != boot_cpuid); in smp_prepare_boot_cpu()
411 unsigned int cpu = smp_processor_id(); in generic_cpu_disable()
680 unsigned int cpu = smp_processor_id(); in start_secondary()
793 int cpu = smp_processor_id(); in __cpu_disable()
/linux-4.1.27/arch/x86/lib/
Ddelay.c56 cpu = smp_processor_id(); in delay_tsc()
79 if (unlikely(cpu != smp_processor_id())) { in delay_tsc()
81 cpu = smp_processor_id(); in delay_tsc()
/linux-4.1.27/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()
Dtlbflush_64.c85 unsigned int cpu = smp_processor_id(); in local_flush_tlb_range()
131 unsigned int cpu = smp_processor_id(); in local_flush_tlb_mm()
Dcache-sh4.c192 if (cpu_context(smp_processor_id(), mm) == NO_CONTEXT) in sh4_flush_cache_mm()
223 if (cpu_context(smp_processor_id(), vma->vm_mm) == NO_CONTEXT) in sh4_flush_cache_page()
286 if (cpu_context(smp_processor_id(), vma->vm_mm) == NO_CONTEXT) in sh4_flush_cache_range()
Dasids-debugfs.c41 cpu_asid(smp_processor_id(), p->mm)); in asids_seq_show()
Dkmap.c43 (FIX_N_COLOURS * smp_processor_id())); in kmap_coherent()
/linux-4.1.27/arch/arm/kernel/
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()
133 crash_save_cpu(regs, smp_processor_id()); in machine_crash_shutdown()
Dsmp.c188 unsigned int cpu = smp_processor_id(); in __cpu_disable()
256 unsigned int cpu = smp_processor_id(); in cpu_die()
352 cpu = smp_processor_id(); in secondary_start_kernel()
412 set_my_cpu_offset(per_cpu_offset(smp_processor_id())); in smp_prepare_boot_cpu()
421 smp_store_cpu_info(smp_processor_id()); in smp_prepare_cpus()
517 smp_cross_call(cpumask_of(smp_processor_id()), IPI_IRQ_WORK); in arch_irq_work_raise()
575 unsigned int cpu = smp_processor_id(); in handle_IPI()
653 cpumask_clear_cpu(smp_processor_id(), &mask); in smp_send_stop()
Dsuspend.c20 u32 __mpidr = cpu_logical_map(smp_processor_id()); in cpu_suspend()
44 u32 __mpidr = cpu_logical_map(smp_processor_id()); in cpu_suspend()
Dirq.c151 if (irqd_is_per_cpu(d) || !cpumask_test_cpu(smp_processor_id(), affinity)) in migrate_one_irq()
193 i, smp_processor_id()); in migrate_irqs()
Dsmp_scu.c86 int cpu = MPIDR_AFFINITY_LEVEL(cpu_logical_map(smp_processor_id()), 0); in scu_power_mode()
/linux-4.1.27/arch/metag/kernel/
Dirq.c70 irqctx = hardirq_ctx[smp_processor_id()]; in do_IRQ()
155 hardirq_ctx[smp_processor_id()] = NULL; in irq_ctx_exit()
167 irqctx = softirq_ctx[smp_processor_id()]; in do_softirq_own_stack()
245 irq_ctx_init(smp_processor_id()); in init_IRQ()
269 unsigned int i, cpu = smp_processor_id(); in migrate_irqs()
Dsmp.c270 unsigned int cpu = smp_processor_id(); in __cpu_disable()
340 unsigned int cpu = smp_processor_id(); in secondary_start_kernel()
416 unsigned int cpu = smp_processor_id(); in smp_prepare_cpus()
427 unsigned int cpu = smp_processor_id(); in smp_prepare_boot_cpu()
521 unsigned int cpu = smp_processor_id(); in do_IPI()
564 unsigned int cpu = smp_processor_id(); in stop_this_cpu()
Dtraps.c753 unsigned long cpu = smp_processor_id(); in traps_save_context()
769 unsigned long cpu = smp_processor_id(); in traps_restore_context()
785 unsigned long cpu = smp_processor_id(); in _get_trigger_mask()
797 unsigned long cpu = smp_processor_id(); in set_trigger_mask()
836 unsigned long cpu = smp_processor_id(); in trap_init()
856 unsigned long cpu = smp_processor_id(); in tbi_startup_interrupt()
872 unsigned long cpu = smp_processor_id(); in tbi_shutdown_interrupt()
Dsetup.c226 unsigned long cpu = smp_processor_id(); in setup_arch()
399 cpu_2_hwthread_id[smp_processor_id()] = hard_processor_id(); in setup_arch()
400 hwthread_id_2_cpu[hard_processor_id()] = smp_processor_id(); in setup_arch()
/linux-4.1.27/arch/blackfin/mach-common/
Dsmp.c125 unsigned int cpu = smp_processor_id(); in ipi_handler_int0()
134 int cpu = smp_processor_id(); in ipi_timer()
142 unsigned int cpu = smp_processor_id(); in ipi_handler_int1()
240 cpumask_clear_cpu(smp_processor_id(), &callmap); in smp_send_stop()
282 unsigned int cpu = smp_processor_id(); in secondary_start_kernel()
407 unsigned int cpu = smp_processor_id(); in __cpu_disable()
Ddpmc.c66 unsigned int cpu = smp_processor_id(); in bfin_idle_this_cpu()
87 unsigned int this_cpu = smp_processor_id(); in bfin_wakeup_cpu()
/linux-4.1.27/arch/mips/include/asm/
Dmmu_context.h41 write_c0_xcontext((unsigned long) smp_processor_id() << \
60 write_c0_context((unsigned long) smp_processor_id() << \
142 unsigned int cpu = smp_processor_id(); in switch_mm()
182 unsigned int cpu = smp_processor_id(); in activate_mm()
Dcpu-info.h97 #define current_cpu_data cpu_data[smp_processor_id()]
105 #define cpu_name_string() __cpu_name[smp_processor_id()]
Dbugs.h35 unsigned int cpu = smp_processor_id(); in check_bugs()
/linux-4.1.27/arch/arc/include/asm/
Dmmu_context.h62 const unsigned int cpu = smp_processor_id(); in get_new_mmu_context()
124 asid_mm(mm, smp_processor_id()) = MM_CTXT_NO_ASID; in destroy_context()
134 const int cpu = smp_processor_id(); in switch_mm()
/linux-4.1.27/arch/powerpc/platforms/cell/
Dras.c58 int cpu = smp_processor_id(); in cbe_system_error_exception()
67 int cpu = smp_processor_id(); in cbe_maintenance_exception()
79 int cpu = smp_processor_id(); in cbe_thermal_exception()
91 int cpu = smp_processor_id(); in cbe_machine_check_handler()
288 if (sysreset_hack && (smp_processor_id() == 0)) { in cbe_sysreset_hack()
/linux-4.1.27/arch/mips/loongson/loongson-3/
Dsmp.c257 int i, cpu = smp_processor_id(); in loongson3_ipi_interrupt()
288 unsigned int cpu = smp_processor_id(); in loongson3_init_secondary()
320 int cpu = smp_processor_id(); in loongson3_smp_finish()
327 smp_processor_id(), read_c0_status()); in loongson3_smp_finish()
369 per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE; in loongson3_prepare_cpus()
405 unsigned int cpu = smp_processor_id(); in loongson3_cpu_disable()
462 [sets] "r" (cpu_data[smp_processor_id()].dcache.sets)); in loongson3a_play_dead()
524 [sets] "r" (cpu_data[smp_processor_id()].dcache.sets)); in loongson3b_play_dead()
563 unsigned int cpu = smp_processor_id(); in play_dead()
Dirq.c58 int cpu = smp_processor_id(); in mask_loongson_irq()
75 int cpu = smp_processor_id(); in unmask_loongson_irq()
Dhpet.c150 unsigned int cpu = smp_processor_id(); in hpet_irq_handler()
200 unsigned int cpu = smp_processor_id(); in setup_hpet_timer()
/linux-4.1.27/arch/x86/kernel/
Dtsc_sync.c163 smp_processor_id(), cpu); in check_tsc_sync_source()
169 smp_processor_id(), cpu); in check_tsc_sync_source()
204 check_tsc_warp(loop_timeout(smp_processor_id())); in check_tsc_sync_target()
Dprocess.c340 trace_cpu_idle_rcuidle(1, smp_processor_id()); in default_idle()
342 trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, smp_processor_id()); in default_idle()
364 set_cpu_online(smp_processor_id(), false); in stop_this_cpu()
403 int cpu = smp_processor_id(); in amd_e400_idle()
456 trace_cpu_idle_rcuidle(1, smp_processor_id()); in mwait_idle()
468 trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, smp_processor_id()); in mwait_idle()
Dkvm.c142 n.cpu = smp_processor_id(); in kvm_async_pf_task_wait()
196 if (n->cpu == smp_processor_id()) in apf_task_wake_all()
233 n->cpu = smp_processor_id(); in kvm_async_pf_task_wake()
305 int cpu = smp_processor_id(); in kvm_register_steal_time()
348 smp_processor_id()); in kvm_guest_cpu_init()
374 smp_processor_id()); in kvm_pv_disable_apf()
736 cpu = smp_processor_id(); in kvm_lock_spinning()
Dkvmclock.c82 cpu = smp_processor_id(); in kvm_clock_read()
132 int cpu = smp_processor_id(); in kvm_check_and_clear_guest_paused()
157 int cpu = smp_processor_id(); in kvm_register_clock()
Dnmi_selftest.c95 cpumask_clear_cpu(smp_processor_id(), to_cpumask(nmi_ipi_mask)); in remote_ipi()
103 cpumask_set_cpu(smp_processor_id(), to_cpumask(nmi_ipi_mask)); in local_ipi()
Dsmpboot.c156 cpuid = smp_processor_id(); in smp_callin()
177 setup_vector_irq(smp_processor_id()); in smp_callin()
255 set_cpu_online(smp_processor_id(), true); in start_secondary()
257 cpu_set_state_online(smp_processor_id()); in start_secondary()
719 cpu = smp_processor_id(); in wakeup_cpu0_nmi()
1196 int me = smp_processor_id(); in native_smp_prepare_boot_cpu()
1329 int cpu = smp_processor_id(); in cpu_disable_common()
1394 if (smp_processor_id() == 0 && enable_start_cpu0) in wakeup_cpu0()
Dapb_timer.c150 adev->num = smp_processor_id(); in apbt_clockevent_register()
151 adev->timer = dw_apb_clockevent_init(smp_processor_id(), "apbt0", in apbt_clockevent_register()
189 cpu = smp_processor_id(); in apbt_setup_secondary_clock()
Dnmi.c220 reason, smp_processor_id()); in pci_serr_error()
255 reason, smp_processor_id()); in io_check_error()
296 reason, smp_processor_id()); in unknown_nmi_error()
/linux-4.1.27/arch/powerpc/oprofile/
Dop_model_pa6t.c154 pr_debug("setup on cpu %d, mmcr0 %016lx\n", smp_processor_id(), in pa6t_cpu_setup()
156 pr_debug("setup on cpu %d, mmcr1 %016lx\n", smp_processor_id(), in pa6t_cpu_setup()
179 pr_debug("start on cpu %d, mmcr0 %llx\n", smp_processor_id(), mmcr0); in pa6t_start()
195 pr_debug("stop on cpu %d, mmcr0 %llx\n", smp_processor_id(), mmcr0); in pa6t_stop()
Dop_model_power4.c194 dbg("setup on cpu %d, mmcr0 %lx\n", smp_processor_id(), in power4_cpu_setup()
196 dbg("setup on cpu %d, mmcr1 %lx\n", smp_processor_id(), in power4_cpu_setup()
198 dbg("setup on cpu %d, mmcra %lx\n", smp_processor_id(), in power4_cpu_setup()
238 dbg("start on cpu %d, mmcr0 %x\n", smp_processor_id(), mmcr0); in power4_start()
253 dbg("stop on cpu %d, mmcr0 %x\n", smp_processor_id(), mmcr0); in power4_stop()
/linux-4.1.27/arch/arc/kernel/
Dsmp.c117 unsigned int cpu = smp_processor_id(); in start_kernel_secondary()
215 pr_debug("%d Sending msg [%d] to %d\n", smp_processor_id(), msg, cpu); in ipi_send_msg_one()
259 cpumask_clear_cpu(smp_processor_id(), &targets); in smp_send_stop()
310 *this_cpu_ptr(&ipi_data), smp_processor_id()); in do_IPI()
/linux-4.1.27/include/linux/
Dsmp.h180 # define smp_processor_id() debug_smp_processor_id() macro
182 # define smp_processor_id() raw_smp_processor_id() macro
185 #define get_cpu() ({ preempt_disable(); smp_processor_id(); })
Dstop_machine.h51 if (cpu == smp_processor_id()) in stop_one_cpu()
70 if (cpu == smp_processor_id()) { in stop_one_cpu_nowait()
Dirq_cpustat.h26 __IRQ_STAT(smp_processor_id(), __softirq_pending)
Drelay.h207 buf = chan->buf[smp_processor_id()]; in relay_write()
255 struct rchan_buf *buf = chan->buf[smp_processor_id()]; in relay_reserve()
/linux-4.1.27/drivers/clocksource/
Dtimer-atlas7.c74 int cpu = smp_processor_id(); in sirfsoc_timer_interrupt()
104 int cpu = smp_processor_id(); in sirfsoc_timer_set_next_event()
131 sirfsoc_timer_count_disable(smp_processor_id()); in sirfsoc_timer_set_mode()
184 int cpu = smp_processor_id(); in sirfsoc_local_timer_setup()
213 int cpu = smp_processor_id(); in sirfsoc_local_timer_stop()
Ddummy_timer.c30 int cpu = smp_processor_id(); in dummy_timer_setup()
/linux-4.1.27/arch/mips/mm/
Dhighmem.c56 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic()
81 int idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic()
110 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic_pfn()
Dtlb-r8k.c55 int cpu = smp_processor_id(); in local_flush_tlb_mm()
65 int cpu = smp_processor_id(); in local_flush_tlb_range()
150 int cpu = smp_processor_id(); in local_flush_tlb_page()
Dtlb-r3k.c68 int cpu = smp_processor_id(); in local_flush_tlb_mm()
82 int cpu = smp_processor_id(); in local_flush_tlb_range()
159 int cpu = smp_processor_id(); in local_flush_tlb_page()
Dc-tx39.c154 if (cpu_context(smp_processor_id(), mm) != 0) in tx39_flush_cache_mm()
163 if (!(cpu_context(smp_processor_id(), vma->vm_mm))) in tx39_flush_cache_range()
182 if (cpu_context(smp_processor_id(), mm) == 0) in tx39_flush_cache_page()
Dc-r3k.c248 cpu_context(smp_processor_id(), mm), addr); in r3k_flush_cache_page()
251 if (cpu_context(smp_processor_id(), mm) == 0) in r3k_flush_cache_page()
Dtlb-r4k.c108 cpu = smp_processor_id(); in local_flush_tlb_mm()
121 int cpu = smp_processor_id(); in local_flush_tlb_range()
213 int cpu = smp_processor_id(); in local_flush_tlb_page()
/linux-4.1.27/arch/metag/mm/
Dhighmem.c52 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic()
70 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic()
101 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic_pfn()
/linux-4.1.27/arch/arm/mach-tegra/
Dpm.c83 int cpu = smp_processor_id(); in restore_cpu_complex()
107 int cpu = smp_processor_id(); in suspend_cpu_complex()
123 int phy_cpu_id = cpu_logical_map(smp_processor_id()); in tegra_clear_cpu_in_lp2()
136 int phy_cpu_id = cpu_logical_map(smp_processor_id()); in tegra_set_cpu_in_lp2()
/linux-4.1.27/kernel/time/
Dtick-common.c100 int cpu = smp_processor_id(); in tick_handle_periodic()
228 int cpu = smp_processor_id(); in tick_install_replacement()
279 if (!tick_check_percpu(curdev, newdev, smp_processor_id())) in tick_check_replacement()
295 cpu = smp_processor_id(); in tick_check_new_device()
344 if (tick_do_timer_cpu == smp_processor_id()) { in tick_handover_do_timer()
Dtick-broadcast.c260 int cpu = smp_processor_id(); in tick_do_broadcast()
359 cpu = smp_processor_id(); in tick_broadcast_control()
464 return cpumask_test_cpu(smp_processor_id(), tick_broadcast_mask); in tick_resume_check_broadcast()
516 return cpumask_test_cpu(smp_processor_id(), tick_broadcast_force_mask); in tick_check_broadcast_expired()
560 if (cpumask_test_cpu(smp_processor_id(), tick_broadcast_oneshot_mask)) { in tick_check_oneshot_broadcast_this_cpu()
611 cpumask_clear_cpu(smp_processor_id(), tick_broadcast_pending_mask); in tick_handle_oneshot_broadcast()
668 if (broadcast_needs_cpu(bc, smp_processor_id())) in broadcast_shutdown_local()
713 cpu = smp_processor_id(); in tick_broadcast_oneshot_control()
841 int cpu = smp_processor_id(); in tick_broadcast_setup_oneshot()
Dtick-sched.c114 int cpu = smp_processor_id(); in tick_sched_do_timer()
210 if (tick_nohz_full_cpu(smp_processor_id())) { in __tick_nohz_full_check()
235 if (!tick_nohz_full_cpu(smp_processor_id())) in tick_nohz_full_kick()
285 if (!tick_nohz_full_cpu(smp_processor_id())) in __tick_nohz_task_switch()
375 cpu = smp_processor_id(); in tick_nohz_init()
471 update_ts_time_stats(smp_processor_id(), ts, now, NULL); in tick_nohz_stop_idle()
723 int cpu = smp_processor_id(); in tick_nohz_full_stop_tick()
794 int cpu = smp_processor_id(); in __tick_nohz_idle_enter()
1166 offset *= smp_processor_id(); in tick_setup_sched_timer()
Dtick-broadcast-hrtimer.c74 bc->bound_on = smp_processor_id(); in bc_set_next()
75 } else if (bc->bound_on == smp_processor_id()) { in bc_set_next()
/linux-4.1.27/arch/arm/mm/
Dhighmem.c81 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic()
108 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic()
138 idx = type + KM_TYPE_NR * smp_processor_id(); in kmap_atomic_pfn()
/linux-4.1.27/kernel/locking/
Dosq_lock.c41 int curr = encode_cpu(smp_processor_id()); in osq_wait_next()
88 int curr = encode_cpu(smp_processor_id()); in osq_lock()
182 int curr = encode_cpu(smp_processor_id()); in osq_unlock()
/linux-4.1.27/arch/m32r/include/asm/
Dmmu_context.h29 #define mmu_context_cache mmu_context_cache_dat[smp_processor_id()]
30 #define mm_context(mm) mm->context[smp_processor_id()]
125 int cpu = smp_processor_id(); in switch_mm()
/linux-4.1.27/arch/parisc/kernel/
Dirq.c86 int cpu = smp_processor_id(); in cpu_ack_irq()
101 int cpu = smp_processor_id(); in cpu_eoi_irq()
409 int cpu = smp_processor_id(); in stack_overflow_check()
472 union_ptr = &per_cpu(irq_stack_union, smp_processor_id()); in execute_on_irq_stack()
509 int irq, cpu = smp_processor_id(); in do_cpu_irq_mask()
532 !cpumask_test_cpu(smp_processor_id(), &dest)) { in do_cpu_irq_mask()
536 irq, smp_processor_id(), cpu); in do_cpu_irq_mask()
Dsmp.c113 set_cpu_online(smp_processor_id(), false); in halt_processor()
123 int this_cpu = smp_processor_id(); in ipi_interrupt()
224 if (i != smp_processor_id()) in send_IPI_allbutself()
Dtime.c64 unsigned int cpu = smp_processor_id(); in timer_interrupt()
226 unsigned int cpu = smp_processor_id(); in start_cpu_itimer()
Dpa7300lc.c32 printk(KERN_WARNING "LPMC on CPU %d\n", smp_processor_id()); in pa7300lc_lpmc()
Dsetup.c125 init_per_cpu(smp_processor_id()); /* Set Modes & Enable FP */ in setup_arch()
384 cpunum = smp_processor_id(); in start_parisc()
/linux-4.1.27/arch/arc/mm/
Dtlb.c221 struct cpuinfo_arc_mmu *mmu = &cpuinfo_arc700[smp_processor_id()].mmu; in local_flush_tlb_all()
277 const unsigned int cpu = smp_processor_id(); in local_flush_tlb_range()
350 const unsigned int cpu = smp_processor_id(); in local_flush_tlb_page()
478 tlb_paranoid_check(asid_mm(vma->vm_mm, smp_processor_id()), address); in create_tlb()
565 struct cpuinfo_arc_mmu *mmu = &cpuinfo_arc700[smp_processor_id()].mmu; in read_decode_mmu_bcr()
625 struct cpuinfo_arc_mmu *mmu = &cpuinfo_arc700[smp_processor_id()].mmu; in arc_mmu_init()
687 struct cpuinfo_arc_mmu *mmu = &cpuinfo_arc700[smp_processor_id()].mmu; in do_tlb_overlap_fault()
/linux-4.1.27/arch/powerpc/platforms/powernv/
Dsubcore.c153 int i, cpu = smp_processor_id(); in wait_for_sync_step()
182 cpu = smp_processor_id(); in unsplit_core()
219 cpu = smp_processor_id(); in split_core()
253 per_cpu(split_state, smp_processor_id()).step = SYNC_STEP_FINISHED; in cpu_do_split()
Dsmp.c136 int cpu = smp_processor_id(); in pnv_smp_cpu_disable()
160 cpu = smp_processor_id(); in pnv_smp_cpu_kill_self()
/linux-4.1.27/arch/mips/oprofile/
Dop_model_mipsxx.c55 M_PERFCTL_VPEID(cpu_data[smp_processor_id()].vpe_id))
57 0 : cpu_data[smp_processor_id()].vpe_id)
183 if (oprofile_skip_cpu(smp_processor_id())) in mipsxx_cpu_setup()
207 if (oprofile_skip_cpu(smp_processor_id())) in mipsxx_cpu_start()
227 if (oprofile_skip_cpu(smp_processor_id())) in mipsxx_cpu_stop()
/linux-4.1.27/net/iucv/
Diucv.c379 int cpu = smp_processor_id(); in iucv_allow_cpu()
420 int cpu = smp_processor_id(); in iucv_block_cpu()
440 int cpu = smp_processor_id(); in iucv_block_cpu_almost()
465 int cpu = smp_processor_id(); in iucv_declare_cpu()
520 int cpu = smp_processor_id(); in iucv_retrieve_cpu()
720 parm = iucv_param_irq[smp_processor_id()]; in iucv_sever_pathid()
890 parm = iucv_param[smp_processor_id()]; in iucv_path_accept()
938 parm = iucv_param[smp_processor_id()]; in iucv_path_connect()
998 parm = iucv_param[smp_processor_id()]; in iucv_path_quiesce()
1030 parm = iucv_param[smp_processor_id()]; in iucv_path_resume()
[all …]
/linux-4.1.27/arch/hexagon/kernel/
Dsmp.c96 int cpu = smp_processor_id(); in handle_ipi()
168 cpu = smp_processor_id(); in start_secondary()
241 cpumask_clear_cpu(smp_processor_id(), &targets); in smp_send_stop()
Dtime.c139 int cpu = smp_processor_id(); in setup_percpu_clockdev()
157 int cpu = smp_processor_id(); in ipi_timer()
/linux-4.1.27/arch/x86/include/asm/
Dmc146818rtc.h44 new = ((smp_processor_id() + 1) << 8) | reg; in lock_cmos()
62 return (cmos_lock >> 8) == (smp_processor_id() + 1); in do_i_have_lock_cmos()
/linux-4.1.27/arch/arm/mach-highbank/
Dsysregs.h40 int cpu = MPIDR_AFFINITY_LEVEL(cpu_logical_map(smp_processor_id()), 0); in highbank_set_core_pwr()
49 int cpu = MPIDR_AFFINITY_LEVEL(cpu_logical_map(smp_processor_id()), 0); in highbank_clear_core_pwr()
/linux-4.1.27/kernel/
Dsmpboot.c40 per_cpu(idle_threads, smp_processor_id()) = current; in idle_thread_set_boot_cpu()
69 boot_cpu = smp_processor_id(); in idle_threads_init()
126 BUG_ON(td->cpu != smp_processor_id()); in smpboot_thread_fn()
135 BUG_ON(td->cpu != smp_processor_id()); in smpboot_thread_fn()
459 int cpu = smp_processor_id(); in cpu_report_death()
Dsmp.c91 void *cpu = (void *)(long)smp_processor_id(); in call_function_init()
147 if (cpu == smp_processor_id()) { in generic_exec_single()
226 if (unlikely(warn_cpu_offline && !cpu_online(smp_processor_id()) && in flush_smp_call_function_queue()
229 WARN(1, "IPI on offline CPU %d\n", smp_processor_id()); in flush_smp_call_function_queue()
408 int cpu, next_cpu, this_cpu = smp_processor_id(); in smp_call_function_many()
734 if (cpu == smp_processor_id()) in wake_up_all_idle_cpus()
/linux-4.1.27/arch/tile/mm/
Dhighmem.c108 amp->cpu = smp_processor_id(); in kmap_atomic_register()
133 int cpu = smp_processor_id(); in kmap_atomic_unregister()
214 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic_prot()
244 idx = type + KM_TYPE_NR*smp_processor_id(); in __kunmap_atomic()
/linux-4.1.27/arch/m32r/mm/
Dfault-nommu.c41 #define tlb_entry_i tlb_entry_i_dat[smp_processor_id()]
42 #define tlb_entry_d tlb_entry_d_dat[smp_processor_id()]
/linux-4.1.27/arch/microblaze/mm/
Dhighmem.c47 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic_prot()
74 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic()
/linux-4.1.27/arch/powerpc/mm/
Dhighmem.c43 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic_prot()
71 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic()
Dmmu_context_nohash.c142 int cpu = smp_processor_id(); in steal_all_contexts()
179 int cpu = smp_processor_id(); in steal_context_up()
231 unsigned int i, id, cpu = smp_processor_id(); in switch_mmu_context()
/linux-4.1.27/arch/s390/include/asm/
Dmmu_context.h72 int cpu = smp_processor_id(); in switch_mm()
100 cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm)); in finish_arch_post_lock_switch()
115 cpumask_set_cpu(smp_processor_id(), mm_cpumask(next)); in activate_mm()
Dtlbflush.h68 if (cpumask_equal(mm_cpumask(mm), cpumask_of(smp_processor_id()))) { in __tlb_flush_full()
94 cpumask_equal(mm_cpumask(mm), cpumask_of(smp_processor_id()))) { in __tlb_flush_asce()
/linux-4.1.27/arch/blackfin/kernel/
Dnmi.c146 unsigned int this_cpu = smp_processor_id(); in check_nmi_wdt_touched()
194 atomic_set(&nmi_touched[smp_processor_id()], 1); in touch_nmi_watchdog()
230 unsigned int cpu = smp_processor_id(); in do_nmi()
Dreboot.c89 if (smp_processor_id()) in machine_restart()
/linux-4.1.27/kernel/irq/
Dspurious.c40 if (WARN_ONCE(irq_poll_cpu == smp_processor_id(), in irq_wait_for_poll()
42 smp_processor_id(), desc->irq_data.irq)) in irq_wait_for_poll()
127 irq_poll_cpu = smp_processor_id(); in misrouted_irq()
152 irq_poll_cpu = smp_processor_id(); in poll_spurious_irqs()
/linux-4.1.27/arch/alpha/kernel/
Dtime.c92 int cpu = smp_processor_id(); in rtc_timer_interrupt()
124 int cpu = smp_processor_id(); in init_rtc_clockevent()
182 int cpu = smp_processor_id(); in qemu_timer_interrupt()
192 int cpu = smp_processor_id(); in init_qemu_clockevent()
Dsmp.c525 int this_cpu = smp_processor_id(); in handle_ipi()
588 cpumask_clear_cpu(smp_processor_id(), &to_whom); in smp_send_stop()
637 #define asn_locked() (cpu_data[smp_processor_id()].asn_lock)
657 int cpu, this_cpu = smp_processor_id(); in flush_tlb_mm()
706 int cpu, this_cpu = smp_processor_id(); in flush_tlb_page()
762 int cpu, this_cpu = smp_processor_id(); in flush_icache_user_range()
Drtc.c244 if (smp_processor_id() != boot_cpuid) { in remote_read_time()
263 if (smp_processor_id() != boot_cpuid) { in remote_set_time()
282 if (smp_processor_id() != boot_cpuid) { in remote_set_mmss()
Dcore_mcpcia.c93 cpu = smp_processor_id(); in conf_read()
141 cpu = smp_processor_id(); in conf_write()
255 int cpu = smp_processor_id(); in mcpcia_probe_hose()
576 unsigned int cpu = smp_processor_id(); in mcpcia_machine_check()
/linux-4.1.27/arch/xtensa/kernel/
Dsmp.c102 unsigned int cpu = smp_processor_id(); in smp_prepare_boot_cpu()
117 unsigned int cpu = smp_processor_id(); in secondary_start_kernel()
258 unsigned int cpu = smp_processor_id(); in __cpu_disable()
359 if (index != smp_processor_id()) in send_ipi_message()
385 cpumask_clear_cpu(smp_processor_id(), &targets); in smp_send_stop()
397 unsigned int cpu = smp_processor_id(); in ipi_interrupt()
/linux-4.1.27/arch/sparc/kernel/
Dsmp_64.c142 printk("CPU[%d]: Returns from cpu_idle!\n", smp_processor_id()); in cpu_panic()
246 smp_processor_id(), delta, rt); in smp_synchronize_tick_client()
449 smp_processor_id(), result); in spitfire_xcall_helper()
584 smp_processor_id(), dispatch_stat); in cheetah_xcall_deliver()
627 this_cpu = smp_processor_id(); in hypervisor_xcall_deliver()
755 this_cpu = smp_processor_id(); in xcall_deliver()
1156 smp_processor_id()); in smp_capture()
1175 smp_processor_id()); in smp_release()
1300 int cpu = smp_processor_id(); in cpu_play_dead()
1335 int cpu = smp_processor_id(); in __cpu_disable()
[all …]
Dtraps_64.c461 smp_processor_id(), scode, p); in spitfire_log_udb_syndrome()
472 smp_processor_id(), scode, p); in spitfire_log_udb_syndrome()
482 smp_processor_id(), afsr, afar, udbl, udbh, tl1); in spitfire_cee_log()
504 smp_processor_id(), afsr, afar, udbl, udbh, tt, tl1); in spitfire_ue_log()
557 pci_poke_in_progress && pci_poke_cpu == smp_processor_id()) { in spitfire_access_error()
604 smp_processor_id()); in cheetah_enable_pcache()
799 int cpu = smp_processor_id(); in cheetah_get_error_log()
1146 (recoverable ? KERN_WARNING : KERN_CRIT), smp_processor_id(), in cheetah_log_errors()
1150 (recoverable ? KERN_WARNING : KERN_CRIT), smp_processor_id(), in cheetah_log_errors()
1153 (recoverable ? KERN_WARNING : KERN_CRIT), smp_processor_id()); in cheetah_log_errors()
[all …]
Dsun4m_smp.c193 cpumask_clear_cpu(smp_processor_id(), &mask); in sun4m_cross_call()
232 int i = smp_processor_id(); in smp4m_cross_call_irq()
244 int cpu = smp_processor_id(); in smp4m_percpu_timer_interrupt()
Dleon_smp.c112 int me = smp_processor_id(); in leon_configure_cache_smp()
162 int me = smp_processor_id(); in leon_boot_cpus()
407 cpumask_clear_cpu(smp_processor_id(), &mask); in leon_cross_call()
448 int i = smp_processor_id(); in leon_cross_call_irq()
Dsmp_32.c118 printk("CPU[%d]: Returns from cpu_idle!\n", smp_processor_id()); in cpu_panic()
353 cpu = smp_processor_id(); in sparc_start_secondary()
/linux-4.1.27/arch/sparc/mm/
Dhighmem.c62 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic()
103 idx = type + KM_TYPE_NR * smp_processor_id(); in __kunmap_atomic()
/linux-4.1.27/arch/blackfin/mm/
Dsram-alloc.c444 cpu = smp_processor_id(); in l1_data_A_sram_alloc()
471 cpu = smp_processor_id(); in l1_data_A_sram_free()
495 cpu = smp_processor_id(); in l1_data_B_sram_alloc()
522 cpu = smp_processor_id(); in l1_data_B_sram_free()
578 cpu = smp_processor_id(); in l1_inst_sram_alloc()
605 cpu = smp_processor_id(); in l1_inst_sram_free()
629 cpu = smp_processor_id(); in l1sram_alloc()
649 cpu = smp_processor_id(); in l1sram_alloc_max()
669 cpu = smp_processor_id(); in l1sram_free()
/linux-4.1.27/arch/blackfin/include/asm/
Dmmu_context.h77 unsigned int cpu = smp_processor_id(); in __switch_mm()
153 unsigned int cpu = smp_processor_id(); in update_protections()
188 unsigned int cpu = smp_processor_id(); in destroy_context()
/linux-4.1.27/arch/x86/xen/
Dsmp.c82 cpu = smp_processor_id(); in cpu_bringup()
282 BUG_ON(smp_processor_id() != 0); in xen_smp_prepare_boot_cpu()
485 unsigned int cpu = smp_processor_id(); in xen_cpu_disable()
512 HYPERVISOR_vcpu_op(VCPUOP_down, smp_processor_id(), NULL); in xen_play_dead()
542 int cpu = smp_processor_id(); in stop_self()
648 xen_send_IPI_one(smp_processor_id(), xen_vector); in xen_send_IPI_self()
655 unsigned int this_cpu = smp_processor_id(); in xen_send_IPI_mask_allbutself()
Dapic.c54 if (!xen_initial_domain() || smp_processor_id()) in xen_apic_read()
61 return SET_APIC_LOGICAL_ID(1UL << smp_processor_id()); in xen_apic_read()
Dtime.c332 int cpu = smp_processor_id(); in xen_vcpuop_set_mode()
358 int cpu = smp_processor_id(); in xen_vcpuop_set_next_event()
479 int cpu = smp_processor_id(); in xen_time_init()
527 int cpu = smp_processor_id(); in xen_hvm_setup_cpu_clockevents()
/linux-4.1.27/arch/x86/kernel/apic/
Dapic_flat_64.c48 num = smp_processor_id(); in flat_init_apic_ldr()
76 int cpu = smp_processor_id(); in flat_send_IPI_mask_allbutself()
86 int cpu = smp_processor_id(); in flat_send_IPI_allbutself()
Dipi.c42 unsigned int this_cpu = smp_processor_id(); in default_send_IPI_mask_allbutself_phys()
85 unsigned int this_cpu = smp_processor_id(); in default_send_IPI_mask_allbutself_logical()
Dx2apic_cluster.c39 this_cpu = smp_processor_id(); in __x2apic_send_IPI_mask()
133 unsigned int this_cpu = smp_processor_id(); in init_x2apic_ldr()
191 int cpu = smp_processor_id(); in x2apic_init_cpu_notifier()
Dapic_numachip.c123 unsigned int this_cpu = smp_processor_id(); in numachip_send_IPI_mask_allbutself()
134 unsigned int this_cpu = smp_processor_id(); in numachip_send_IPI_allbutself()
/linux-4.1.27/arch/x86/kernel/acpi/
Dsleep.c104 (unsigned long)get_cpu_gdt_table(smp_processor_id()); in x86_acpi_suspend_lowlevel()
105 initial_gs = per_cpu_offset(smp_processor_id()); in x86_acpi_suspend_lowlevel()
/linux-4.1.27/arch/m68k/sun3/prom/
Dconsole.c88 "r" (&current_set[smp_processor_id()]) :
136 "r" (&current_set[smp_processor_id()]) :
/linux-4.1.27/drivers/misc/sgi-gru/
Dgrukservices.c442 "excdet0 0x%lx, excdet1 0x%x", smp_processor_id(), in gru_get_cb_exception_detail_str()
967 printk(KERN_DEBUG "GRU:%d quicktest0: CBR failure 1\n", smp_processor_id()); in quicktest0()
972 printk(KERN_DEBUG "GRU:%d quicktest0 bad magic 0x%lx\n", smp_processor_id(), *p); in quicktest0()
977 printk(KERN_DEBUG "GRU:%d quicktest0: CBR failure 2\n", smp_processor_id()); in quicktest0()
984 smp_processor_id(), word1, MAGIC); in quicktest0()
1023 smp_processor_id(), ret, i); in quicktest1()
1035 smp_processor_id(), i, m, m ? m[8] : -1); in quicktest1()
1086 printk(KERN_DEBUG "GRU:%d quicktest2: cb %d, exception\n", smp_processor_id(), i); in quicktest2()
1091 smp_processor_id(), i, buf[4 * i], buf[4 * i + 1], buf[4 * i + 2], buf[4 * i + 3]); in quicktest2()
1117 printk(KERN_DEBUG "GRU:%d quicktest3 error\n", smp_processor_id()); in quicktest3()
/linux-4.1.27/arch/xtensa/mm/
Dtlb.c65 int cpu = smp_processor_id(); in local_flush_tlb_mm()
91 int cpu = smp_processor_id(); in local_flush_tlb_range()
130 int cpu = smp_processor_id(); in local_flush_tlb_page()
/linux-4.1.27/arch/sh/include/asm/
Dmmu_context.h122 unsigned int cpu = smp_processor_id(); in switch_mm()
158 unsigned int cpu = smp_processor_id(); in enable_mmu()
Dsmp-ops.h6 unsigned int (*smp_processor_id)(void); member
Dsmp.h69 return mp_ops->smp_processor_id(); in hard_smp_processor_id()
/linux-4.1.27/arch/sparc/include/asm/
Dmmu_context_64.h124 cpu = smp_processor_id(); in switch_mm()
144 cpu = smp_processor_id(); in activate_mm()
Ddelay_32.h27 #define __udelay_val cpu_data(smp_processor_id()).udelay_val
/linux-4.1.27/arch/arm/include/asm/
Dcacheflush.h227 if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) in vivt_flush_cache_mm()
236 if (!mm || cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) in vivt_flush_cache_range()
246 if (!mm || cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) { in vivt_flush_cache_page()
/linux-4.1.27/drivers/net/ethernet/tile/
Dtilepro.c268 len = sprintf(buf, "tile_net[%2.2d]: ", smp_processor_id()); in net_printk()
284 int my_cpu = smp_processor_id(); in dump_packet()
662 int my_cpu = smp_processor_id(); in tile_net_discard_packets()
826 int my_cpu = smp_processor_id(); in tile_net_poll()
886 int my_cpu = smp_processor_id(); in tile_net_handle_ingress_interrupt()
978 int my_cpu = smp_processor_id(); in tile_net_register()
1093 int my_cpu = smp_processor_id(); in tile_net_deregister()
1122 int my_cpu = smp_processor_id(); in tile_net_unregister()
1197 int my_cpu = smp_processor_id(); in tile_net_stop_disable()
1218 int my_cpu = smp_processor_id(); in tile_net_open_enable()
[all …]
/linux-4.1.27/arch/powerpc/platforms/pseries/
Dhotplug-cpu.c104 smp_processor_id(), hard_smp_processor_id()); in rtas_stop_self()
112 unsigned int cpu = smp_processor_id(); in pseries_mach_cpu_die()
173 int cpu = smp_processor_id(); in pseries_cpu_disable()
Dsuspend.c94 cacheinfo_cpu_offline(smp_processor_id()); in pseries_suspend_enable_irqs()
96 cacheinfo_cpu_online(smp_processor_id()); in pseries_suspend_enable_irqs()
Dkexec.c29 int cpu = smp_processor_id(); in pseries_kexec_cpu_down()
/linux-4.1.27/arch/ia64/include/asm/
Dmmu_context.h169 if (!cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) in activate_context()
170 cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm)); in activate_context()
Dnuma.h66 #define local_nodeid (cpu_to_node_map[smp_processor_id()])
/linux-4.1.27/drivers/cpufreq/
Dpowernow-k8.c153 pr_debug("cpu%d, init lo 0x%x, hi 0x%x\n", smp_processor_id(), lo, hi); in fidvid_msr_init()
280 smp_processor_id(), in transition_fid_vid()
286 smp_processor_id(), data->currfid, data->currvid); in transition_fid_vid()
300 smp_processor_id(), in core_voltage_pre_transition()
358 smp_processor_id(), in core_frequency_transition()
425 smp_processor_id(), in core_voltage_post_transition()
906 pr_debug("cpu %d transition to index %u\n", smp_processor_id(), index); in transition_frequency_fidvid()
928 smp_processor_id(), fid, vid); in transition_frequency_fidvid()
932 policy = cpufreq_cpu_get(smp_processor_id()); in transition_frequency_fidvid()
Dintegrator-cpufreq.c96 BUG_ON(cpu != smp_processor_id()); in integrator_set_target()
161 BUG_ON(cpu != smp_processor_id()); in integrator_get()
/linux-4.1.27/arch/arm/mach-mvebu/
Dpmsu.c230 unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); in mvebu_v7_pmsu_idle_prepare()
344 unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); in mvebu_v7_pmsu_idle_exit()
367 unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); in mvebu_v7_cpu_pm_notify()
518 u32 cpu = smp_processor_id(); in mvebu_pmsu_dfs_request_local()
/linux-4.1.27/arch/arm/mach-omap2/
Domap-hotplug.c58 if (boot_cpu == smp_processor_id()) { in omap4_cpu_die()
/linux-4.1.27/arch/alpha/lib/
Dudelay.c35 #define LPJ cpu_data[smp_processor_id()].loops_per_jiffy
/linux-4.1.27/arch/alpha/include/asm/
Dmmu_context.h138 long cpu = smp_processor_id(); in ev5_switch_mm()
186 int cpu = smp_processor_id(); \
/linux-4.1.27/drivers/bus/
Dmips_cdmm.c296 cpu = smp_processor_id(); in mips_cdmm_get_bus()
385 smp_processor_id()); in mips_cdmm_setup()
396 smp_processor_id(), &bus->phys); in mips_cdmm_setup()
491 unsigned int cpu = smp_processor_id(); in mips_cdmm_bus_discover()
/linux-4.1.27/arch/x86/kernel/cpu/microcode/
Damd_early.c286 unsigned int cpu = smp_processor_id(); in collect_cpu_sig_on_bsp()
303 unsigned int cpu = smp_processor_id(); in load_ucode_amd_ap()
392 ret = load_microcode_amd(smp_processor_id(), eax, container, container_size); in save_microcode_in_initrd_amd()
/linux-4.1.27/arch/x86/power/
Dcpu.c74 ctxt->gdt_desc.address = (unsigned long)get_cpu_gdt_table(smp_processor_id()); in __save_processor_state()
137 int cpu = smp_processor_id(); in fix_processor_context()
/linux-4.1.27/arch/alpha/mm/
Dfault.c46 mmc = __get_new_mm_context(next_mm, smp_processor_id()); in __load_new_mm_context()
47 next_mm->context[smp_processor_id()] = mmc; in __load_new_mm_context()
/linux-4.1.27/arch/x86/um/
Dsysrq_32.c19 smp_processor_id(), print_tainted()); in show_regs()
/linux-4.1.27/lib/
Ddump_stack.c39 cpu = smp_processor_id(); in dump_stack()
/linux-4.1.27/kernel/trace/
Dtrace_stack.c262 cpu = smp_processor_id(); in stack_max_size_write()
307 cpu = smp_processor_id(); in t_start()
324 cpu = smp_processor_id(); in t_stop()
/linux-4.1.27/Documentation/
Dpreempt-locking.txt25 tux[smp_processor_id()] = some_value;
27 something = tux[smp_processor_id()];
31 the previous value of smp_processor_id may not equal the current. You must
109 if (buf[smp_processor_id()] == -1) printf(KERN_INFO "wee!\n");
/linux-4.1.27/drivers/irqchip/
Dirq-gic-v3.c401 affinity = gic_mpidr_to_affinity(cpu_logical_map(smp_processor_id())); in gic_dist_init()
408 u64 mpidr = cpu_logical_map(smp_processor_id()); in gic_populate_rdist()
440 smp_processor_id(), in gic_populate_rdist()
458 smp_processor_id(), (unsigned long long)mpidr); in gic_populate_rdist()
572 pr_debug("CPU%d: ICC_SGI1R_EL1 %llx\n", smp_processor_id(), val); in gic_send_sgi()
/linux-4.1.27/net/netfilter/
Dxt_cpu.c41 return (info->cpu == smp_processor_id()) ^ info->invert; in cpu_mt()
/linux-4.1.27/arch/cris/mm/
Dfault.c65 address, smp_processor_id(), instruction_pointer(regs), in do_page_fault()
329 pgd = (pgd_t *)per_cpu(current_pgd, smp_processor_id()) + offset; in do_page_fault()
/linux-4.1.27/arch/mips/sibyte/sb1250/
Dirq.c292 unsigned int cpu = smp_processor_id(); in dispatch_ip2()
308 unsigned int cpu = smp_processor_id(); in plat_irq_dispatch()
/linux-4.1.27/arch/tile/include/asm/
Dswitch_to.h64 current_thread_info()->homecache_cpu != smp_processor_id()) \
/linux-4.1.27/arch/cris/arch-v32/kernel/
Dirq.c263 return smp_processor_id(); in irq_cpu()
343 block_irq(irq, smp_processor_id()); in crisv32_do_IRQ()
368 cpu = smp_processor_id(); in crisv32_do_multiple()
/linux-4.1.27/include/trace/events/
Dtlb.h41 TP_CONDITION(cpu_online(smp_processor_id())),

1234