Home
last modified time | relevance | path

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

12

/arch/x86/include/asm/
Darchrandom.h85 return static_cpu_has(X86_FEATURE_RDRAND) ? rdrand_long(v) : false; in arch_get_random_long()
90 return static_cpu_has(X86_FEATURE_RDRAND) ? rdrand_int(v) : false; in arch_get_random_int()
95 return static_cpu_has(X86_FEATURE_RDSEED) ? rdseed_long(v) : false; in arch_get_random_seed_long()
100 return static_cpu_has(X86_FEATURE_RDSEED) ? rdseed_int(v) : false; in arch_get_random_seed_int()
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))
Dtlbflush.h123 if (static_cpu_has(X86_FEATURE_PCID)) { in build_cr3()
392 if (!static_cpu_has(X86_FEATURE_PTI)) in invalidate_user_asid()
424 if (static_cpu_has(X86_FEATURE_INVPCID)) { in __native_flush_tlb_global()
460 if (!static_cpu_has(X86_FEATURE_PTI)) in __native_flush_tlb_one_user()
514 if (!static_cpu_has(X86_FEATURE_PTI)) in __flush_tlb_one_kernel()
Dswitch_to.h92 if (static_cpu_has(X86_FEATURE_XENPV)) in update_task_stack()
103 if (static_cpu_has(X86_FEATURE_XENPV)) in update_task_stack()
Dcpufeature.h143 (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit))
169 #define static_cpu_has(bit) boot_cpu_has(bit) macro
225 #define static_cpu_has(bit) \ macro
237 #define static_cpu_has_bug(bit) static_cpu_has((bit))
Dsync_core.h17 if (static_cpu_has(X86_FEATURE_PTI)) in sync_core_before_usermode()
Dmmu_context.h123 if (static_cpu_has(X86_FEATURE_PTI)) { in load_mm_ldt()
Dpgtable.h697 if (!static_cpu_has(X86_FEATURE_PTI)) in pti_set_user_pgtbl()
1305 if (!static_cpu_has(X86_FEATURE_PTI)) in clone_pgd_range()
/arch/x86/kernel/fpu/
Dcore.c158 if (!static_cpu_has(X86_FEATURE_FPU)) { in fpstate_init()
165 if (static_cpu_has(X86_FEATURE_XSAVES)) in fpstate_init()
167 if (static_cpu_has(X86_FEATURE_FXSR)) in fpstate_init()
181 if (!static_cpu_has(X86_FEATURE_FPU)) in fpu__copy()
310 else if (static_cpu_has(X86_FEATURE_FXSR)) in copy_init_fpstate_to_fpregs()
338 if (static_cpu_has(X86_FEATURE_FPU)) in fpu__clear()
347 if (!static_cpu_has(X86_FEATURE_FPU)) in switch_fpu_return()
Dsignal.c176 if (!static_cpu_has(X86_FEATURE_FPU)) in copy_fpstate_to_sigframe()
297 if (!static_cpu_has(X86_FEATURE_FPU)) { in __fpu__restore_sig()
/arch/x86/include/asm/fpu/
Dinternal.h63 return static_cpu_has(X86_FEATURE_XSAVEOPT); in use_xsaveopt()
68 return static_cpu_has(X86_FEATURE_XSAVE); in use_xsave()
73 return static_cpu_has(X86_FEATURE_FXSR); in use_fxsr()
567 if (static_cpu_has(X86_FEATURE_FPU) && !(prev->flags & PF_KTHREAD)) { in switch_fpu_prepare()
592 if (!static_cpu_has(X86_FEATURE_FPU)) in switch_fpu_finish()
/arch/x86/kernel/
Dprocess.c365 if (!static_cpu_has(X86_FEATURE_ZEN)) { in amd_set_core_ssb_state()
432 if (static_cpu_has(X86_FEATURE_VIRT_SSBD)) { in __speculation_ctrl_update()
435 } else if (static_cpu_has(X86_FEATURE_LS_CFG_SSBD)) { in __speculation_ctrl_update()
438 } else if (static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) || in __speculation_ctrl_update()
439 static_cpu_has(X86_FEATURE_AMD_SSBD)) { in __speculation_ctrl_update()
Dprocess_64.c456 if (static_cpu_has(X86_BUG_NULL_SEG)) { in start_thread_common()
579 if (unlikely(static_cpu_has(X86_FEATURE_XENPV) && in __switch_to()
Dtraps.c526 if (static_cpu_has(X86_FEATURE_UMIP)) { in do_general_protection()
/arch/x86/mm/
Dextable.c133 if (static_cpu_has(X86_BUG_NULL_SEG)) in ex_handler_clear_fs()
Dtlb.c55 if (!static_cpu_has(X86_FEATURE_PTI)) { in clear_asid_other()
81 if (!static_cpu_has(X86_FEATURE_PCID)) { in choose_new_asid()
/arch/x86/kvm/
Dcpuid.h98 !static_cpu_has(X86_FEATURE_XSAVE)) in guest_cpuid_has()
Dsvm.c786 WARN_ON_ONCE(!static_cpu_has(X86_FEATURE_NRIPS)); in skip_emulated_instruction()
907 if (static_cpu_has(X86_FEATURE_TSCRATEMSR)) in svm_hardware_disable()
949 if (static_cpu_has(X86_FEATURE_TSCRATEMSR)) { in svm_hardware_enable()
2346 if (static_cpu_has(X86_FEATURE_TSCRATEMSR)) { in svm_vcpu_load()
2354 if (static_cpu_has(X86_FEATURE_RDTSCP)) in svm_vcpu_load()
2766 static_cpu_has(X86_FEATURE_DECODEASSISTS) ? in pf_interception()
2778 static_cpu_has(X86_FEATURE_DECODEASSISTS) ? in npf_interception()
4000 if (!static_cpu_has(X86_FEATURE_DECODEASSISTS)) in invlpg_interception()
4060 if (!static_cpu_has(X86_FEATURE_DECODEASSISTS)) in cr_interception()
5548 if (static_cpu_has(X86_FEATURE_FLUSHBYASID)) in svm_flush_tlb()
[all …]
/arch/x86/kernel/cpu/
Dbugs.c166 if (static_cpu_has(X86_FEATURE_MSR_SPEC_CTRL)) { in x86_virt_spec_ctrl()
177 if (!static_cpu_has(X86_FEATURE_LS_CFG_SSBD) && in x86_virt_spec_ctrl()
178 !static_cpu_has(X86_FEATURE_VIRT_SSBD)) in x86_virt_spec_ctrl()
186 if (static_cpu_has(X86_FEATURE_SPEC_STORE_BYPASS_DISABLE)) in x86_virt_spec_ctrl()
1778 if (!static_cpu_has(X86_FEATURE_SPEC_CTRL_SSBD) && in __ssb_select_mitigation()
1779 !static_cpu_has(X86_FEATURE_AMD_SSBD)) { in __ssb_select_mitigation()
/arch/x86/lib/
Dusercopy_32.c349 if (n > 64 && static_cpu_has(X86_FEATURE_XMM2)) in __copy_from_user_ll_nocache_nozero()
/arch/x86/kernel/apic/
Dapic_numachip.c33 if (static_cpu_has(X86_FEATURE_NODEID_MSR)) { in numachip1_get_apic_id()
/arch/x86/kernel/cpu/mtrr/
Dgeneric.c753 if (!static_cpu_has(X86_FEATURE_SELFSNOOP)) in prepare_set()
773 if (!static_cpu_has(X86_FEATURE_SELFSNOOP)) in prepare_set()
/arch/x86/entry/
Dcommon.c430 return static_cpu_has(X86_FEATURE_SEP) && in do_fast_syscall_32()
/arch/x86/kernel/cpu/mce/
Dtherm_throt.c357 if (static_cpu_has(X86_FEATURE_HWP)) in intel_thermal_interrupt()
/arch/x86/ia32/
Dia32_signal.c362 if (static_cpu_has(X86_FEATURE_XSAVE)) in ia32_setup_rt_frame()

12