Home
last modified time | relevance | path

Searched refs:__this_cpu_read (Results 1 – 25 of 123) sorted by relevance

12345

/linux-6.6.21/arch/sparc/kernel/
Dnmi.c107 if (__this_cpu_read(nmi_touch)) { in perfctr_irq()
111 if (!touched && __this_cpu_read(last_irq_sum) == sum) { in perfctr_irq()
113 if (__this_cpu_read(alert_counter) == 30 * nmi_hz) in perfctr_irq()
120 if (__this_cpu_read(wd_enabled)) { in perfctr_irq()
160 if (!__this_cpu_read(wd_enabled)) in stop_nmi_watchdog()
217 if (__this_cpu_read(wd_enabled)) in start_nmi_watchdog()
231 if (!__this_cpu_read(wd_enabled)) in nmi_adjust_hz_one()
/linux-6.6.21/arch/mips/kernel/
Dmips-r2-to-r6-emul.c2243 (unsigned long)__this_cpu_read(mipsr2emustats.movs), in mipsr2_emul_show()
2244 (unsigned long)__this_cpu_read(mipsr2bdemustats.movs)); in mipsr2_emul_show()
2246 (unsigned long)__this_cpu_read(mipsr2emustats.hilo), in mipsr2_emul_show()
2247 (unsigned long)__this_cpu_read(mipsr2bdemustats.hilo)); in mipsr2_emul_show()
2249 (unsigned long)__this_cpu_read(mipsr2emustats.muls), in mipsr2_emul_show()
2250 (unsigned long)__this_cpu_read(mipsr2bdemustats.muls)); in mipsr2_emul_show()
2252 (unsigned long)__this_cpu_read(mipsr2emustats.divs), in mipsr2_emul_show()
2253 (unsigned long)__this_cpu_read(mipsr2bdemustats.divs)); in mipsr2_emul_show()
2255 (unsigned long)__this_cpu_read(mipsr2emustats.dsps), in mipsr2_emul_show()
2256 (unsigned long)__this_cpu_read(mipsr2bdemustats.dsps)); in mipsr2_emul_show()
[all …]
/linux-6.6.21/kernel/time/
Dtick-oneshot.c25 struct clock_event_device *dev = __this_cpu_read(tick_cpu_device.evtdev); in tick_program_event()
52 struct clock_event_device *dev = __this_cpu_read(tick_cpu_device.evtdev); in tick_resume_oneshot()
112 ret = __this_cpu_read(tick_cpu_device.mode) == TICKDEV_MODE_ONESHOT; in tick_oneshot_mode_active()
/linux-6.6.21/arch/x86/kernel/cpu/mce/
Dintel.c139 if (__this_cpu_read(cmci_storm_state) == CMCI_STORM_NONE) in mce_intel_cmci_poll()
186 (__this_cpu_read(cmci_storm_state) == CMCI_STORM_ACTIVE)) { in cmci_intel_adjust_timer()
191 switch (__this_cpu_read(cmci_storm_state)) { in cmci_intel_adjust_timer()
225 unsigned int cnt = __this_cpu_read(cmci_storm_cnt); in cmci_storm_detect()
226 unsigned long ts = __this_cpu_read(cmci_time_stamp); in cmci_storm_detect()
230 if (__this_cpu_read(cmci_storm_state) != CMCI_STORM_NONE) in cmci_storm_detect()
/linux-6.6.21/include/linux/
Dcontext_tracking_state.h80 return __this_cpu_read(context_tracking.dynticks_nesting); in ct_dynticks_nesting()
92 return __this_cpu_read(context_tracking.dynticks_nmi_nesting); in ct_dynticks_nmi_nesting()
118 return context_tracking_enabled() && __this_cpu_read(context_tracking.active); in context_tracking_enabled_this_cpu()
/linux-6.6.21/include/asm-generic/
Dirq_regs.h21 return __this_cpu_read(__irq_regs); in get_irq_regs()
28 old_regs = __this_cpu_read(__irq_regs); in set_irq_regs()
/linux-6.6.21/lib/
Dpercpu_test.c11 WARN(__this_cpu_read(pcp) != (expected), \
13 __this_cpu_read(pcp), __this_cpu_read(pcp), \
Dcpumask.c176 prev = __this_cpu_read(distribute_cpu_mask_prev); in cpumask_any_and_distribute()
192 prev = __this_cpu_read(distribute_cpu_mask_prev); in cpumask_any_distribute()
/linux-6.6.21/arch/x86/kernel/
Dhw_breakpoint.c485 set_debugreg(__this_cpu_read(cpu_debugreg[0]), 0); in hw_breakpoint_restore()
486 set_debugreg(__this_cpu_read(cpu_debugreg[1]), 1); in hw_breakpoint_restore()
487 set_debugreg(__this_cpu_read(cpu_debugreg[2]), 2); in hw_breakpoint_restore()
488 set_debugreg(__this_cpu_read(cpu_debugreg[3]), 3); in hw_breakpoint_restore()
490 set_debugreg(__this_cpu_read(cpu_dr7), 7); in hw_breakpoint_restore()
Dirq_32.c77 irqstk = __this_cpu_read(pcpu_hot.hardirq_stack_ptr); in execute_on_irq_stack()
138 irqstk = __this_cpu_read(pcpu_hot.softirq_stack_ptr); in do_softirq_own_stack()
Dirq.c255 desc = __this_cpu_read(vector_irq[vector]); in DEFINE_IDTENTRY_IRQ()
366 if (IS_ERR_OR_NULL(__this_cpu_read(vector_irq[vector]))) in fixup_irqs()
371 desc = __this_cpu_read(vector_irq[vector]); in fixup_irqs()
382 if (__this_cpu_read(vector_irq[vector]) != VECTOR_RETRIGGERED) in fixup_irqs()
Dkvm.c247 if (__this_cpu_read(apf_reason.enabled)) { in kvm_read_and_reset_apf_flags()
248 flags = __this_cpu_read(apf_reason.flags); in kvm_read_and_reset_apf_flags()
298 if (__this_cpu_read(apf_reason.enabled)) { in DEFINE_IDTENTRY_SYSVEC()
299 token = __this_cpu_read(apf_reason.token); in DEFINE_IDTENTRY_SYSVEC()
386 if (!__this_cpu_read(apf_reason.enabled)) in kvm_pv_disable_apf()
/linux-6.6.21/kernel/
Dsoftirq.c77 struct task_struct *tsk = __this_cpu_read(ksoftirqd); in wakeup_softirqd()
140 return __this_cpu_read(softirq_ctrl.cnt) != 0; in local_bh_blocked()
214 curcnt = __this_cpu_read(softirq_ctrl.cnt); in __local_bh_enable_ip()
420 if (!force_irqthreads() || !__this_cpu_read(ksoftirqd)) { in invoke_softirq()
566 __this_cpu_read(ksoftirqd) == current) in __do_softirq()
937 *__this_cpu_read(tasklet_vec.tail) = per_cpu(tasklet_vec, cpu).head; in takeover_tasklets()
945 *__this_cpu_read(tasklet_hi_vec.tail) = per_cpu(tasklet_hi_vec, cpu).head; in takeover_tasklets()
/linux-6.6.21/drivers/cpuidle/
Dcpuidle-psci.c48 return __this_cpu_read(domain_state); in psci_get_domain_state()
104 struct device *pd_dev = __this_cpu_read(psci_cpuidle_data.dev); in psci_idle_cpuhp_up()
114 struct device *pd_dev = __this_cpu_read(psci_cpuidle_data.dev); in psci_idle_cpuhp_down()
188 u32 *state = __this_cpu_read(psci_cpuidle_data.psci_states); in psci_enter_idle_state()
/linux-6.6.21/drivers/xen/events/
Devents_2l.c123 struct vcpu_info *vcpu_info = __this_cpu_read(xen_vcpu); in evtchn_2l_unmask()
173 struct vcpu_info *vcpu_info = __this_cpu_read(xen_vcpu); in evtchn_2l_handle_events()
192 start_word_idx = __this_cpu_read(current_word_idx); in evtchn_2l_handle_events()
193 start_bit_idx = __this_cpu_read(current_bit_idx); in evtchn_2l_handle_events()
/linux-6.6.21/arch/x86/include/asm/
Dcpu_entry_area.h148 CEA_ESTACK_TOP(__this_cpu_read(cea_exception_stacks), name)
151 CEA_ESTACK_BOT(__this_cpu_read(cea_exception_stacks), name)
Dirq_stack.h119 call_on_stack(__this_cpu_read(pcpu_hot.hardirq_stack_ptr), \
138 if (user_mode(regs) || __this_cpu_read(pcpu_hot.hardirq_stack_inuse)) { \
/linux-6.6.21/arch/powerpc/lib/
Dcode-patching.c292 patching_mm = __this_cpu_read(cpu_patching_context.mm); in __do_patch_instruction_mm()
293 text_poke_addr = __this_cpu_read(cpu_patching_context.addr); in __do_patch_instruction_mm()
339 text_poke_addr = (unsigned long)__this_cpu_read(cpu_patching_context.addr) & PAGE_MASK; in __do_patch_instruction()
342 pte = __this_cpu_read(cpu_patching_context.pte); in __do_patch_instruction()
/linux-6.6.21/arch/powerpc/kernel/
Dhw_breakpoint.c236 struct perf_event *bp = __this_cpu_read(bp_per_reg[i]); in thread_change_pc()
246 info = counter_arch_bp(__this_cpu_read(bp_per_reg[i])); in thread_change_pc()
408 bp[i] = __this_cpu_read(bp_per_reg[i]); in hw_breakpoint_handler()
519 bp = __this_cpu_read(bp_per_reg[i]); in single_step_dabr_instruction()
/linux-6.6.21/kernel/rcu/
Dtree_plugin.h289 if (__this_cpu_read(rcu_data.cpu_no_qs.b.norm)) { in rcu_qs()
291 __this_cpu_read(rcu_data.gp_seq), in rcu_qs()
588 return (__this_cpu_read(rcu_data.cpu_no_qs.b.exp) || in rcu_preempt_need_deferred_qs()
741 __this_cpu_read(rcu_data.core_needs_qs) && in rcu_flavor_sched_clock_irq()
742 __this_cpu_read(rcu_data.cpu_no_qs.b.norm) && in rcu_flavor_sched_clock_irq()
851 if (!__this_cpu_read(rcu_data.cpu_no_qs.s)) in rcu_qs()
854 __this_cpu_read(rcu_data.gp_seq), TPS("cpuqs")); in rcu_qs()
856 if (__this_cpu_read(rcu_data.cpu_no_qs.b.exp)) in rcu_qs()
/linux-6.6.21/arch/arm64/include/asm/
Darch_timer.h27 __wa = __this_cpu_read(timer_unstable_counter_workaround); \
34 __wa = __this_cpu_read(timer_unstable_counter_workaround); \
/linux-6.6.21/arch/x86/xen/
Dtime.c53 src = &__this_cpu_read(xen_vcpu)->time; in xen_clocksource_read()
69 src = &__this_cpu_read(xen_vcpu)->time; in xen_sched_clock()
547 pvti = &__this_cpu_read(xen_vcpu)->time; in xen_time_init()
628 if (!__this_cpu_read(xen_vcpu)) { in xen_hvm_init_time_ops()
/linux-6.6.21/drivers/irqchip/
Dirq-xtensa-mx.c83 mask = __this_cpu_read(cached_irq_mask) & ~mask; in xtensa_mx_irq_mask()
101 mask |= __this_cpu_read(cached_irq_mask); in xtensa_mx_irq_unmask()
/linux-6.6.21/mm/
Dvmstat.c359 x = delta + __this_cpu_read(*p); in __mod_zone_page_state()
361 t = __this_cpu_read(pcp->stat_threshold); in __mod_zone_page_state()
395 x = delta + __this_cpu_read(*p); in __mod_node_page_state()
397 t = __this_cpu_read(pcp->stat_threshold); in __mod_node_page_state()
442 t = __this_cpu_read(pcp->stat_threshold); in __inc_zone_state()
465 t = __this_cpu_read(pcp->stat_threshold); in __inc_node_state()
498 t = __this_cpu_read(pcp->stat_threshold); in __dec_zone_state()
521 t = __this_cpu_read(pcp->stat_threshold); in __dec_node_state()
846 if (!__this_cpu_read(pcp->expire) || in refresh_cpu_vm_stats()
847 !__this_cpu_read(pcp->count)) in refresh_cpu_vm_stats()
[all …]
/linux-6.6.21/arch/arm64/kvm/hyp/vhe/
Dswitch.c88 write_sysreg(__this_cpu_read(kvm_hyp_vector), vbar_el1); in __activate_traps()
134 host_vectors = __this_cpu_read(this_cpu_vector); in __deactivate_traps()

12345