| /arch/x86/kernel/cpu/ |
| A D | bus_lock.c | 117 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 D | bugs.c | 570 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 D | tsx.c | 117 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 D | topology_amd.c | 79 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 D | init.c | 25 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 D | cpufeature.h | 74 #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 D | vmalloc.h | 14 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 D | xor_avx.h | 171 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 D | fsgsbase.h | 60 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 D | cpufeature.h | 54 #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 D | sm4_aesni_avx2_glue.c | 103 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 D | camellia_aesni_avx2_glue.c | 102 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 D | aria_gfni_avx512_glue.c | 201 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 D | camellia_aesni_avx_glue.c | 103 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 D | aria_aesni_avx2_glue.c | 202 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 D | nhpoly1305-avx2-glue.c | 62 if (!boot_cpu_has(X86_FEATURE_AVX2) || in nhpoly1305_mod_init() 63 !boot_cpu_has(X86_FEATURE_OSXSAVE)) in nhpoly1305_mod_init()
|
| A D | sm3_avx_glue.c | 69 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 D | aria_aesni_avx_glue.c | 189 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 D | tsc.c | 943 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 D | ldt.c | 200 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 D | hugetlbpage.c | 28 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 D | suspend.c | 42 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 D | apic.c | 550 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 D | apic_noop.c | 43 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 D | msr.c | 24 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()
|