Home
last modified time | relevance | path

Searched refs:this_cpu_read (Results 1 – 25 of 109) sorted by relevance

12345

/linux-6.6.21/arch/x86/mm/
Dtlb.c205 if (asid == this_cpu_read(cpu_tlbstate.loaded_mm_asid)) in clear_asid_other()
230 if (this_cpu_read(cpu_tlbstate.invalidate_other)) in choose_new_asid()
234 if (this_cpu_read(cpu_tlbstate.ctxs[asid].ctx_id) != in choose_new_asid()
239 *need_flush = (this_cpu_read(cpu_tlbstate.ctxs[asid].tlb_gen) < in choose_new_asid()
304 struct mm_struct *loaded_mm = this_cpu_read(cpu_tlbstate.loaded_mm); in leave_mm()
318 WARN_ON(!this_cpu_read(cpu_tlbstate_shared.is_lazy)); in leave_mm()
362 if (this_cpu_read(cpu_info.smt_active)) { in l1d_flush_evaluate()
391 prev_mm = this_cpu_read(cpu_tlbstate.last_user_mm_spec); in cond_mitigation()
488 cr4_update_pce_mm(this_cpu_read(cpu_tlbstate.loaded_mm)); in cr4_update_pce()
498 struct mm_struct *real_prev = this_cpu_read(cpu_tlbstate.loaded_mm); in switch_mm_irqs_off()
[all …]
/linux-6.6.21/kernel/trace/
Dtrace_preemptirq.c44 if (this_cpu_read(tracing_irq_cpu)) { in trace_hardirqs_on_prepare()
55 if (this_cpu_read(tracing_irq_cpu)) { in trace_hardirqs_on()
75 if (!this_cpu_read(tracing_irq_cpu)) { in trace_hardirqs_off_finish()
89 if (!this_cpu_read(tracing_irq_cpu)) { in trace_hardirqs_off()
/linux-6.6.21/drivers/irqchip/
Dirq-csky-mpintc.c56 (this_cpu_read(intcl_reg) + INTCL_CFGR) : (INTCG_base + INTCG_CICFGR)))
75 void __iomem *reg_base = this_cpu_read(intcl_reg); in csky_mpintc_handler()
83 void __iomem *reg_base = this_cpu_read(intcl_reg); in csky_mpintc_unmask()
92 void __iomem *reg_base = this_cpu_read(intcl_reg); in csky_mpintc_mask()
99 void __iomem *reg_base = this_cpu_read(intcl_reg); in csky_mpintc_eoi()
215 void __iomem *reg_base = this_cpu_read(intcl_reg); in csky_mpintc_send_ipi()
/linux-6.6.21/arch/x86/include/asm/xen/
Dhypervisor.h79 enum xen_lazy_mode old_mode = this_cpu_read(xen_lazy_mode); in enter_lazy()
93 BUG_ON(this_cpu_read(xen_lazy_mode) != mode); in leave_lazy()
95 if (this_cpu_read(xen_lazy_nesting) == 0) in leave_lazy()
/linux-6.6.21/arch/arm64/kernel/
Dtopology.c155 prev_const_cnt = this_cpu_read(arch_const_cycles_prev); in amu_scale_freq_tick()
156 prev_core_cnt = this_cpu_read(arch_core_cycles_prev); in amu_scale_freq_tick()
160 const_cnt = this_cpu_read(arch_const_cycles_prev); in amu_scale_freq_tick()
161 core_cnt = this_cpu_read(arch_core_cycles_prev); in amu_scale_freq_tick()
176 scale *= this_cpu_read(arch_max_freq_scale); in amu_scale_freq_tick()
/linux-6.6.21/arch/x86/include/asm/
Dkvmclock.h13 return &this_cpu_read(hv_clock_per_cpu)->pvti; in this_cpu_pvti()
18 return this_cpu_read(hv_clock_per_cpu); in this_cpu_hvclock()
Dswitch_to.h58 if (unlikely(this_cpu_read(cpu_tss_rw.x86_tss.ss1) == thread->sysenter_cs)) in refresh_sysenter_cs()
/linux-6.6.21/arch/x86/kernel/
Ddumpstack_32.c40 unsigned long *begin = (unsigned long *)this_cpu_read(pcpu_hot.hardirq_stack_ptr); in in_hardirq_stack()
65 unsigned long *begin = (unsigned long *)this_cpu_read(pcpu_hot.softirq_stack_ptr); in in_softirq_stack()
102 info->next_sp = (unsigned long *)this_cpu_read(cpu_tss_rw.x86_tss.sp); in in_doublefault_stack()
Dnmi.c504 if (this_cpu_read(nmi_state) != NMI_NOT_RUNNING) { in DEFINE_IDTENTRY_RAW()
546 local_db_restore(this_cpu_read(nmi_dr7)); in DEFINE_IDTENTRY_RAW()
550 if (unlikely(this_cpu_read(nmi_cr2) != read_cr2())) in DEFINE_IDTENTRY_RAW()
551 write_cr2(this_cpu_read(nmi_cr2)); in DEFINE_IDTENTRY_RAW()
Dtsc.c77 seq = this_cpu_read(cyc2ns.seq.seqcount.sequence); in __cyc2ns_read()
80 data->cyc2ns_offset = this_cpu_read(cyc2ns.data[idx].cyc2ns_offset); in __cyc2ns_read()
81 data->cyc2ns_mul = this_cpu_read(cyc2ns.data[idx].cyc2ns_mul); in __cyc2ns_read()
82 data->cyc2ns_shift = this_cpu_read(cyc2ns.data[idx].cyc2ns_shift); in __cyc2ns_read()
84 } while (unlikely(seq != this_cpu_read(cyc2ns.seq.seqcount.sequence))); in __cyc2ns_read()
/linux-6.6.21/kernel/
Dwatchdog_perf.c150 perf_event_enable(this_cpu_read(watchdog_ev)); in watchdog_hardlockup_enable()
160 struct perf_event *event = this_cpu_read(watchdog_ev); in watchdog_hardlockup_disable()
257 perf_event_release_kernel(this_cpu_read(watchdog_ev)); in watchdog_hardlockup_probe()
/linux-6.6.21/arch/loongarch/kernel/
Dkfpu.c27 WARN_ON(this_cpu_read(in_kernel_fpu)); in kernel_fpu_begin()
55 WARN_ON(!this_cpu_read(in_kernel_fpu)); in kernel_fpu_end()
/linux-6.6.21/include/linux/
Dlockdep.h611 #define __lockdep_enabled (debug_locks && !this_cpu_read(lockdep_recursion))
615 WARN_ON_ONCE(__lockdep_enabled && !this_cpu_read(hardirqs_enabled)); \
620 WARN_ON_ONCE(__lockdep_enabled && this_cpu_read(hardirqs_enabled)); \
625 WARN_ON_ONCE(__lockdep_enabled && !this_cpu_read(hardirq_context)); \
630 WARN_ON_ONCE(__lockdep_enabled && (this_cpu_read(hardirq_context) || \
631 !this_cpu_read(hardirqs_enabled))); \
639 !this_cpu_read(hardirqs_enabled))); \
647 this_cpu_read(hardirqs_enabled))); \
/linux-6.6.21/arch/x86/kernel/cpu/mce/
Damd.c428 if (!this_cpu_read(threshold_banks) && !tr->set_lvt_off) in threshold_restart_bank()
687 for (bank = 0; bank < this_cpu_read(mce_num_banks); ++bank) { in mce_amd_feature_init()
832 for (bank = 0; bank < this_cpu_read(mce_num_banks); ++bank) in amd_deferred_error_interrupt()
871 struct threshold_bank **bp = this_cpu_read(threshold_banks); in amd_threshold_interrupt()
882 for (bank = 0; bank < this_cpu_read(mce_num_banks); ++bank) { in amd_threshold_interrupt()
1078 if ((bank >= this_cpu_read(mce_num_banks)) || (block >= NR_BLOCKS)) in allocate_threshold_blocks()
1174 struct device *dev = this_cpu_read(mce_device); in threshold_create_bank()
1302 unsigned int bank, numbanks = this_cpu_read(mce_num_banks); in __threshold_remove_device()
1316 struct threshold_bank **bp = this_cpu_read(threshold_banks); in mce_threshold_remove_device()
1351 bp = this_cpu_read(threshold_banks); in mce_threshold_create_device()
[all …]
Dcore.c688 for (i = 0; i < this_cpu_read(mce_num_banks); i++) { in machine_check_poll()
891 for (i = 0; i < this_cpu_read(mce_num_banks); i++) { in mce_no_way_out()
1206 for (i = 0; i < this_cpu_read(mce_num_banks); i++) { in mce_clear_state()
1256 for (i = 0; i < this_cpu_read(mce_num_banks); i++) { in __mc_scan_banks()
1737 u8 n_banks = this_cpu_read(mce_num_banks); in __mcheck_cpu_mce_banks_init()
1812 for (i = 0; i < this_cpu_read(mce_num_banks); i++) { in __mcheck_cpu_init_clear_banks()
1838 for (i = 0; i < this_cpu_read(mce_num_banks); i++) { in __mcheck_cpu_check_banks()
1862 if (c->x86 == 15 && this_cpu_read(mce_num_banks) > 4) { in __mcheck_cpu_apply_quirks()
1881 if (c->x86 == 6 && this_cpu_read(mce_num_banks) > 0) in __mcheck_cpu_apply_quirks()
1906 if (c->x86 == 6 && c->x86_model < 0x1A && this_cpu_read(mce_num_banks) > 0) in __mcheck_cpu_apply_quirks()
[all …]
/linux-6.6.21/Documentation/translations/zh_CN/core-api/
Dthis_cpu_ops.rst46 this_cpu_read(pcp)
75 z = this_cpu_read(x);
232 且更容易与 ``()`` 结合。第二种形式也与 ``this_cpu_read()`` 和大家的使用方式一致。
/linux-6.6.21/arch/arm64/include/asm/
Dsimd.h41 !this_cpu_read(fpsimd_context_busy); in may_use_simd()
/linux-6.6.21/kernel/printk/
Dprintk_safe.c41 if (this_cpu_read(printk_context) || in_nmi()) in vprintk()
/linux-6.6.21/tools/testing/radix-tree/linux/
Dpercpu.h7 #define this_cpu_read(var) var macro
/linux-6.6.21/arch/x86/xen/
Dmulticalls.h51 local_irq_restore(this_cpu_read(xen_mc_irq_flags)); in xen_mc_issue()
Dsuspend.c44 wrmsrl(MSR_IA32_SPEC_CTRL, this_cpu_read(spec_ctrl)); in xen_vcpu_notify_restore()
/linux-6.6.21/arch/powerpc/lib/
Dcode-patching.c132 free_vm_area(this_cpu_read(cpu_patching_context.area)); in text_area_cpu_down()
192 put_patching_mm(this_cpu_read(cpu_patching_context.mm), in text_area_cpu_down_mm()
193 this_cpu_read(cpu_patching_context.addr)); in text_area_cpu_down_mm()
/linux-6.6.21/include/crypto/internal/
Dsimd.h64 (may_use_simd() && !this_cpu_read(crypto_simd_disabled_for_test))
/linux-6.6.21/arch/x86/kernel/fpu/
Dcontext.h38 return fpu == this_cpu_read(fpu_fpregs_owner_ctx) && cpu == fpu->last_cpu; in fpregs_state_valid()
/linux-6.6.21/drivers/accessibility/speakup/
Dfakekey.c86 return this_cpu_read(reporting_keystroke); in speakup_fake_key_pressed()

12345