Home
last modified time | relevance | path

Searched refs:boot_cpu_has (Results 1 – 25 of 139) sorted by relevance

123456

/arch/x86/kernel/cpu/
A Dbus_lock.c117 if (!boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT) && in sld_state_setup()
118 !boot_cpu_has(X86_FEATURE_BUS_LOCK_DETECT)) in sld_state_setup()
298 if (!boot_cpu_has(X86_FEATURE_BUS_LOCK_DETECT)) in bus_lock_init()
303 if ((boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT) && in bus_lock_init()
363 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in split_lock_setup()
393 if (!boot_cpu_has(X86_FEATURE_BUS_LOCK_DETECT) && in sld_state_show()
394 !boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT)) in sld_state_show()
402 if (boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT)) { in sld_state_show()
412 if (boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT)) { in sld_state_show()
416 boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT) ? in sld_state_show()
[all …]
A Dbugs.c570 if (!boot_cpu_has(X86_FEATURE_RTM)) { in taa_select_mitigation()
1164 if (!boot_cpu_has(X86_FEATURE_SMAP)) in smap_works_speculatively()
1217 !boot_cpu_has(X86_FEATURE_PTI)) in spectre_v1_apply_mitigation()
1398 boot_cpu_has(X86_FEATURE_IBPB)) in retbleed_select_mitigation()
1901 if (!boot_cpu_has(X86_FEATURE_IBPB) && !boot_cpu_has(X86_FEATURE_STIBP)) in spectre_v2_user_select_mitigation()
1953 if (!boot_cpu_has(X86_FEATURE_IBPB)) in spectre_v2_user_select_mitigation()
1962 if (!boot_cpu_has(X86_FEATURE_IBPB) && !boot_cpu_has(X86_FEATURE_STIBP)) in spectre_v2_user_update_mitigation()
2273 if (!boot_cpu_has(X86_BUG_BHI)) in bhi_select_mitigation()
2691 if (!boot_cpu_has(X86_FEATURE_SSBD)) in ssb_select_mitigation()
3363 !boot_cpu_has(X86_FEATURE_VMX)) in itlb_multihit_show_state()
[all …]
A Dtsx.c117 if (boot_cpu_has(X86_FEATURE_RTM_ALWAYS_ABORT) && in tsx_clear_cpuid()
118 boot_cpu_has(X86_FEATURE_TSX_FORCE_ABORT)) { in tsx_clear_cpuid()
171 if (boot_cpu_has(X86_FEATURE_RTM_ALWAYS_ABORT)) { in tsx_init()
A Dtopology_amd.c79 if (!boot_cpu_has(X86_FEATURE_TOPOEXT)) in parse_8000_001e()
114 if (!boot_cpu_has(X86_FEATURE_HYPERVISOR) && tscan->c->x86_model <= 0x3) { in parse_8000_001e()
134 if (!boot_cpu_has(X86_FEATURE_NODEID_MSR)) in parse_fam10h_node_id()
/arch/x86/kernel/fpu/
A Dinit.c25 if (boot_cpu_has(X86_FEATURE_FXSR)) in fpu__init_cpu_generic()
27 if (boot_cpu_has(X86_FEATURE_XMM)) in fpu__init_cpu_generic()
34 if (!boot_cpu_has(X86_FEATURE_FPU)) in fpu__init_cpu_generic()
40 if (!boot_cpu_has(X86_FEATURE_FPU)) in fpu__init_cpu_generic()
81 if (!boot_cpu_has(X86_FEATURE_CPUID) && in fpu__init_system_early_generic()
107 if (boot_cpu_has(X86_FEATURE_FXSR)) { in fpu__init_system_mxcsr()
/arch/x86/include/asm/
A Dcpufeature.h74 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) macro
84 if (!boot_cpu_has(bit)) \
120 __builtin_constant_p(boot_cpu_has(bit)) ? \
121 boot_cpu_has(bit) : \
134 #define cpu_have_feature boot_cpu_has
A Dvmalloc.h14 return boot_cpu_has(X86_FEATURE_GBPAGES); in arch_vmap_pud_supported()
21 return boot_cpu_has(X86_FEATURE_PSE); in arch_vmap_pmd_supported()
A Dxor_avx.h171 if (boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_OSXSAVE)) \
176 (boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_OSXSAVE) ? &xor_block_avx : FASTEST)
A Dfsgsbase.h60 if (boot_cpu_has(X86_FEATURE_FSGSBASE)) in x86_fsbase_read_cpu()
70 if (boot_cpu_has(X86_FEATURE_FSGSBASE)) in x86_fsbase_write_cpu()
/arch/um/include/asm/
A Dcpufeature.h54 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) macro
121 __builtin_constant_p(boot_cpu_has(bit)) ? \
122 boot_cpu_has(bit) : \
134 #define cpu_have_feature boot_cpu_has
/arch/x86/crypto/
A Dsm4_aesni_avx2_glue.c103 if (!boot_cpu_has(X86_FEATURE_AVX) || in sm4_init()
104 !boot_cpu_has(X86_FEATURE_AVX2) || in sm4_init()
105 !boot_cpu_has(X86_FEATURE_AES) || in sm4_init()
106 !boot_cpu_has(X86_FEATURE_OSXSAVE)) { in sm4_init()
A Dcamellia_aesni_avx2_glue.c102 if (!boot_cpu_has(X86_FEATURE_AVX) || in camellia_aesni_init()
103 !boot_cpu_has(X86_FEATURE_AVX2) || in camellia_aesni_init()
104 !boot_cpu_has(X86_FEATURE_AES) || in camellia_aesni_init()
105 !boot_cpu_has(X86_FEATURE_OSXSAVE)) { in camellia_aesni_init()
A Daria_gfni_avx512_glue.c201 if (!boot_cpu_has(X86_FEATURE_AVX) || in aria_avx512_init()
202 !boot_cpu_has(X86_FEATURE_AVX2) || in aria_avx512_init()
203 !boot_cpu_has(X86_FEATURE_AVX512F) || in aria_avx512_init()
204 !boot_cpu_has(X86_FEATURE_AVX512VL) || in aria_avx512_init()
205 !boot_cpu_has(X86_FEATURE_GFNI) || in aria_avx512_init()
206 !boot_cpu_has(X86_FEATURE_OSXSAVE)) { in aria_avx512_init()
A Dcamellia_aesni_avx_glue.c103 if (!boot_cpu_has(X86_FEATURE_AVX) || in camellia_aesni_init()
104 !boot_cpu_has(X86_FEATURE_AES) || in camellia_aesni_init()
105 !boot_cpu_has(X86_FEATURE_OSXSAVE)) { in camellia_aesni_init()
A Daria_aesni_avx2_glue.c202 if (!boot_cpu_has(X86_FEATURE_AVX) || in aria_avx2_init()
203 !boot_cpu_has(X86_FEATURE_AVX2) || in aria_avx2_init()
204 !boot_cpu_has(X86_FEATURE_AES) || in aria_avx2_init()
205 !boot_cpu_has(X86_FEATURE_OSXSAVE)) { in aria_avx2_init()
216 if (boot_cpu_has(X86_FEATURE_GFNI) && IS_ENABLED(CONFIG_AS_GFNI)) { in aria_avx2_init()
A Dnhpoly1305-avx2-glue.c62 if (!boot_cpu_has(X86_FEATURE_AVX2) || in nhpoly1305_mod_init()
63 !boot_cpu_has(X86_FEATURE_OSXSAVE)) in nhpoly1305_mod_init()
A Dsm3_avx_glue.c69 if (!boot_cpu_has(X86_FEATURE_AVX)) { in sm3_avx_mod_init()
74 if (!boot_cpu_has(X86_FEATURE_BMI2)) { in sm3_avx_mod_init()
A Daria_aesni_avx_glue.c189 if (!boot_cpu_has(X86_FEATURE_AVX) || in aria_avx_init()
190 !boot_cpu_has(X86_FEATURE_AES) || in aria_avx_init()
191 !boot_cpu_has(X86_FEATURE_OSXSAVE)) { in aria_avx_init()
202 if (boot_cpu_has(X86_FEATURE_GFNI) && IS_ENABLED(CONFIG_AS_GFNI)) { in aria_avx_init()
/arch/x86/kernel/
A Dtsc.c943 if (!boot_cpu_has(X86_FEATURE_TSC)) in recalibrate_cpu_khz()
1060 if (!boot_cpu_has(X86_FEATURE_TSC)) in cpufreq_register_tsc_scaling()
1062 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in cpufreq_register_tsc_scaling()
1089 if (boot_cpu_has(X86_FEATURE_HYPERVISOR) || in detect_art()
1091 !boot_cpu_has(X86_FEATURE_TSC_ADJUST) || in detect_art()
1250 if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) in check_system_tsc_reliable()
1263 boot_cpu_has(X86_FEATURE_TSC_ADJUST) && in check_system_tsc_reliable()
1282 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in unsynchronized_tsc()
1401 if (boot_cpu_has(X86_FEATURE_ART)) { in tsc_refine_calibration_work()
1429 if (boot_cpu_has(X86_FEATURE_ART)) { in init_tsc_clocksource()
[all …]
A Dldt.c200 if (boot_cpu_has(X86_FEATURE_PTI)) in do_sanity_check()
208 if (boot_cpu_has(X86_FEATURE_PTI)) in do_sanity_check()
243 if (boot_cpu_has(X86_FEATURE_PTI) && !mm->context.ldt) in map_ldt_struct_to_user()
268 if (boot_cpu_has(X86_FEATURE_PTI) && !mm->context.ldt) in map_ldt_struct_to_user()
295 if (!boot_cpu_has(X86_FEATURE_PTI)) in map_ldt_struct()
358 if (!boot_cpu_has(X86_FEATURE_PTI)) in unmap_ldt_struct()
400 if (!boot_cpu_has(X86_FEATURE_PTI)) in free_ldt_pgtables()
/arch/x86/mm/
A Dhugetlbpage.c28 else if (size == PUD_SIZE && boot_cpu_has(X86_FEATURE_GBPAGES)) in arch_hugetlb_valid_size()
38 if (boot_cpu_has(X86_FEATURE_GBPAGES)) in gigantic_pages_init()
/arch/x86/xen/
A Dsuspend.c42 if (xen_pv_domain() && boot_cpu_has(X86_FEATURE_SPEC_CTRL)) in xen_vcpu_notify_restore()
58 if (xen_pv_domain() && boot_cpu_has(X86_FEATURE_SPEC_CTRL)) { in xen_vcpu_notify_suspend()
/arch/x86/kernel/apic/
A Dapic.c550 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in apic_validate_deadline_timer()
659 if (boot_cpu_has(X86_FEATURE_TSC)) in lapic_cal_handler()
720 if (boot_cpu_has(X86_FEATURE_TSC)) { in calibrate_by_pmtimer()
772 if (!boot_cpu_has(X86_FEATURE_ARAT)) in apic_needs_pit()
894 if (boot_cpu_has(X86_FEATURE_TSC)) { in calibrate_APIC_clock()
1248 if (!boot_cpu_has(X86_FEATURE_APIC)) { in __apic_intr_mode_select()
1263 if (!boot_cpu_has(X86_FEATURE_APIC) && in __apic_intr_mode_select()
1708 if (!boot_cpu_has(X86_FEATURE_APIC)) in __x2apic_disable()
1935 if (!boot_cpu_has(X86_FEATURE_APIC)) { in detect_init_APIC()
2023 if (!boot_cpu_has(X86_FEATURE_APIC)) { in detect_init_APIC()
[all …]
A Dapic_noop.c43 WARN_ON_ONCE(boot_cpu_has(X86_FEATURE_APIC) && !apic_is_disabled); in noop_apic_read()
49 WARN_ON_ONCE(boot_cpu_has(X86_FEATURE_APIC) && !apic_is_disabled); in noop_apic_write()
/arch/x86/events/
A Dmsr.c24 return boot_cpu_has(X86_FEATURE_APERFMPERF); in test_aperfmperf()
29 return boot_cpu_has(X86_FEATURE_PTSC); in test_ptsc()
34 return boot_cpu_has(X86_FEATURE_IRPERF); in test_irperf()
39 return boot_cpu_has(X86_FEATURE_DTHERM); in test_therm_status()
307 if (!boot_cpu_has(X86_FEATURE_TSC)) { in msr_init()

Completed in 53 milliseconds

123456