Home
last modified time | relevance | path

Searched refs:static_cpu_has (Results 1 – 25 of 47) sorted by relevance

12

/Linux-v4.19/arch/x86/kernel/fpu/
Dcore.c175 if (!static_cpu_has(X86_FEATURE_FPU)) { in fpstate_init()
182 if (static_cpu_has(X86_FEATURE_XSAVES)) in fpstate_init()
184 if (static_cpu_has(X86_FEATURE_FXSR)) in fpstate_init()
195 if (!src_fpu->initialized || !static_cpu_has(X86_FEATURE_FPU)) in fpu__copy()
370 else if (static_cpu_has(X86_FEATURE_FXSR)) in copy_init_fpstate_to_fpregs()
394 if (static_cpu_has(X86_FEATURE_FPU)) { in fpu__clear()
Dsignal.c170 if (!static_cpu_has(X86_FEATURE_FPU)) in copy_fpstate_to_sigframe()
289 if (!static_cpu_has(X86_FEATURE_FPU)) in __fpu__restore_sig()
/Linux-v4.19/arch/x86/include/asm/
Dtlbflush.h123 if (static_cpu_has(X86_FEATURE_PCID)) { in build_cr3()
164 return !static_cpu_has(X86_FEATURE_PCID); in tlb_defer_switch_to_init_mm()
386 if (!static_cpu_has(X86_FEATURE_PTI)) in invalidate_user_asid()
418 if (static_cpu_has(X86_FEATURE_INVPCID)) { in __native_flush_tlb_global()
454 if (!static_cpu_has(X86_FEATURE_PTI)) in __native_flush_tlb_one_user()
502 if (!static_cpu_has(X86_FEATURE_PTI)) in __flush_tlb_one_kernel()
Dpgtable-3level_types.h24 #define SHARED_KERNEL_PMD ((!static_cpu_has(X86_FEATURE_PTI) && \
27 #define SHARED_KERNEL_PMD (!static_cpu_has(X86_FEATURE_PTI))
Dcpufeature.h127 (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit))
153 #define static_cpu_has(bit) boot_cpu_has(bit) macro
206 #define static_cpu_has(bit) \ macro
218 #define static_cpu_has_bug(bit) static_cpu_has((bit))
Darchrandom.h90 #define arch_has_random() static_cpu_has(X86_FEATURE_RDRAND)
91 #define arch_has_random_seed() static_cpu_has(X86_FEATURE_RDSEED)
Dswitch_to.h94 if (static_cpu_has(X86_FEATURE_XENPV)) in update_task_stack()
105 if (static_cpu_has(X86_FEATURE_XENPV)) in update_task_stack()
Dsync_core.h17 if (static_cpu_has(X86_FEATURE_PTI)) in sync_core_before_usermode()
Dmmu_context.h122 if (static_cpu_has(X86_FEATURE_PTI)) { in load_mm_ldt()
/Linux-v4.19/arch/x86/kernel/cpu/
Daperfmperf.c85 if (!static_cpu_has(X86_FEATURE_APERFMPERF)) in aperfmperf_get_khz()
101 if (!static_cpu_has(X86_FEATURE_APERFMPERF)) in arch_freq_prepare_all()
117 if (!static_cpu_has(X86_FEATURE_APERFMPERF)) in arch_freq_get_on_cpu()
Dbugs.c160 if (static_cpu_has(X86_FEATURE_MSR_SPEC_CTRL)) { in x86_virt_spec_ctrl()
170 if (static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) || in x86_virt_spec_ctrl()
171 static_cpu_has(X86_FEATURE_AMD_SSBD)) in x86_virt_spec_ctrl()
184 if (!static_cpu_has(X86_FEATURE_LS_CFG_SSBD) && in x86_virt_spec_ctrl()
185 !static_cpu_has(X86_FEATURE_VIRT_SSBD)) in x86_virt_spec_ctrl()
193 if (static_cpu_has(X86_FEATURE_SPEC_STORE_BYPASS_DISABLE)) in x86_virt_spec_ctrl()
540 if (!static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) && in __ssb_select_mitigation()
541 !static_cpu_has(X86_FEATURE_AMD_SSBD)) { in __ssb_select_mitigation()
Dproc.c41 static_cpu_has(X86_FEATURE_FPU) ? "yes" : "no", in show_cpuinfo_misc()
42 static_cpu_has(X86_FEATURE_FPU) ? "yes" : "no", in show_cpuinfo_misc()
/Linux-v4.19/drivers/gpu/drm/
Ddrm_cache.c85 if (static_cpu_has(X86_FEATURE_CLFLUSH)) { in drm_clflush_pages()
125 if (static_cpu_has(X86_FEATURE_CLFLUSH)) { in drm_clflush_sg()
157 if (static_cpu_has(X86_FEATURE_CLFLUSH)) { in drm_clflush_virt_range()
/Linux-v4.19/arch/x86/include/asm/fpu/
Dinternal.h64 return static_cpu_has(X86_FEATURE_XSAVEOPT); in use_xsaveopt()
69 return static_cpu_has(X86_FEATURE_XSAVE); in use_xsave()
74 return static_cpu_has(X86_FEATURE_FXSR); in use_fxsr()
291 if (static_cpu_has(X86_FEATURE_XSAVES)) in copy_xregs_to_kernel_booting()
313 if (static_cpu_has(X86_FEATURE_XSAVES)) in copy_kernel_to_xregs_booting()
531 if (static_cpu_has(X86_FEATURE_FPU) && old_fpu->initialized) { in switch_fpu_prepare()
553 bool preload = static_cpu_has(X86_FEATURE_FPU) && in switch_fpu_finish()
/Linux-v4.19/arch/x86/kernel/
Dldt.c116 if (static_cpu_has(X86_FEATURE_PTI)) in do_sanity_check()
124 if (static_cpu_has(X86_FEATURE_PTI)) in do_sanity_check()
159 if (static_cpu_has(X86_FEATURE_PTI) && !mm->context.ldt) in map_ldt_struct_to_user()
184 if (static_cpu_has(X86_FEATURE_PTI) && !mm->context.ldt) in map_ldt_struct_to_user()
220 if (!static_cpu_has(X86_FEATURE_PTI)) in map_ldt_struct()
298 if (!static_cpu_has(X86_FEATURE_PTI)) in free_ldt_pgtables()
Dprocess.c234 if (!static_cpu_has(X86_FEATURE_CPUID_FAULT)) in set_cpuid_mode()
347 if (!static_cpu_has(X86_FEATURE_ZEN)) { in amd_set_core_ssb_state()
407 if (static_cpu_has(X86_FEATURE_VIRT_SSBD)) in __speculative_store_bypass_update()
409 else if (static_cpu_has(X86_FEATURE_LS_CFG_SSBD)) in __speculative_store_bypass_update()
Dprocess_64.c370 if (static_cpu_has(X86_BUG_NULL_SEG)) { in start_thread_common()
505 if (unlikely(static_cpu_has(X86_FEATURE_XENPV) && in __switch_to()
/Linux-v4.19/drivers/gpu/drm/i915/
Di915_memcpy.c103 if (static_cpu_has(X86_FEATURE_XMM4_1) && in i915_memcpy_init_early()
/Linux-v4.19/arch/x86/kernel/apic/
Dapic_numachip.c33 if (static_cpu_has(X86_FEATURE_NODEID_MSR)) { in numachip1_get_apic_id()
178 if (static_cpu_has(X86_FEATURE_NODEID_MSR)) { in fixup_cpu_id()
/Linux-v4.19/drivers/cpufreq/
Damd_freq_sensitivity.c122 if (!static_cpu_has(X86_FEATURE_PROC_FEEDBACK)) in amd_freq_sensitivity_init()
Dintel_pstate.c503 if (!static_cpu_has(X86_FEATURE_EPB)) in intel_pstate_get_epb()
517 if (static_cpu_has(X86_FEATURE_HWP_EPP)) { in intel_pstate_get_epp()
542 if (!static_cpu_has(X86_FEATURE_EPB)) in intel_pstate_set_epb()
590 if (static_cpu_has(X86_FEATURE_HWP_EPP)) { in intel_pstate_get_energy_pref_index()
599 } else if (static_cpu_has(X86_FEATURE_EPB)) { in intel_pstate_get_energy_pref_index()
627 if (static_cpu_has(X86_FEATURE_HWP_EPP)) { in intel_pstate_set_energy_pref_index()
782 if (static_cpu_has(X86_FEATURE_HWP_EPP)) { in intel_pstate_hwp_set()
1132 if (static_cpu_has(X86_FEATURE_HWP_NOTIFY)) in intel_pstate_hwp_enable()
/Linux-v4.19/arch/x86/kvm/
Dcpuid.h99 !static_cpu_has(X86_FEATURE_XSAVE)) in guest_cpuid_has()
/Linux-v4.19/arch/x86/mm/
Dextable.c153 if (static_cpu_has(X86_BUG_NULL_SEG)) in ex_handler_clear_fs()
Dtlb.c46 if (!static_cpu_has(X86_FEATURE_PTI)) { in clear_asid_other()
72 if (!static_cpu_has(X86_FEATURE_PCID)) { in choose_new_asid()
/Linux-v4.19/arch/x86/lib/
Dusercopy_32.c349 if (n > 64 && static_cpu_has(X86_FEATURE_XMM2)) in __copy_from_user_ll_nocache_nozero()

12