Home
last modified time | relevance | path

Searched refs:cpu_has (Results 1 – 25 of 38) sorted by relevance

12

/linux-6.12.1/arch/x86/kernel/cpu/
Damd.c212 if (!cpu_has(c, X86_FEATURE_XMM)) { in init_amd_k7()
260 if (cpu_has(c, X86_FEATURE_MP)) in init_amd_k7()
354 if (cpu_has(c, X86_FEATURE_SEV_SNP)) { in bsp_determine_snp()
360 if (!cpu_has(c, X86_FEATURE_HYPERVISOR) && in bsp_determine_snp()
373 if (cpu_has(c, X86_FEATURE_CONSTANT_TSC)) { in bsp_init_amd()
400 if (cpu_has(c, X86_FEATURE_MWAITX)) in bsp_init_amd()
502 if (cpu_has(c, X86_FEATURE_SME) || cpu_has(c, X86_FEATURE_SEV)) { in early_detect_mem_encrypt()
605 if (!cpu_has(c, X86_FEATURE_HYPERVISOR) && !cpu_has(c, X86_FEATURE_IBPB_BRTYPE)) { in early_init_amd()
630 if (c->x86_model < 0x14 && cpu_has(c, X86_FEATURE_LAHF_LM)) { in init_amd_k8()
833 if (!cpu_has(c, X86_FEATURE_HYPERVISOR)) { in init_spectral_chicken()
[all …]
Dfeat_ctl.c127 enable_vmx = cpu_has(c, X86_FEATURE_VMX) && in init_ia32_feat_ctl()
130 if (cpu_has(c, X86_FEATURE_SGX) && IS_ENABLED(CONFIG_X86_SGX)) { in init_ia32_feat_ctl()
137 enable_sgx_driver = cpu_has(c, X86_FEATURE_SGX_LC); in init_ia32_feat_ctl()
173 if (!cpu_has(c, X86_FEATURE_VMX)) in init_ia32_feat_ctl()
200 if (!cpu_has(c, X86_FEATURE_VMX) && enable_sgx_kvm) { in init_ia32_feat_ctl()
Dcommon.c329 if (!cpu_has(c, X86_FEATURE_PN) || !disable_x86_serial_nr) in squash_the_stupid_serial_number()
363 if (cpu_has(c, X86_FEATURE_SMEP)) in setup_smep()
374 if (cpu_has(c, X86_FEATURE_SMAP)) in setup_smap()
385 if (!cpu_has(c, X86_FEATURE_UMIP)) in setup_umip()
652 if (!cpu_has(c, df->feature)) in filter_cpuid_features()
940 if (cpu_has(c, X86_FEATURE_SPEC_CTRL)) { in init_speculation_control()
946 if (cpu_has(c, X86_FEATURE_INTEL_STIBP)) in init_speculation_control()
949 if (cpu_has(c, X86_FEATURE_SPEC_CTRL_SSBD) || in init_speculation_control()
950 cpu_has(c, X86_FEATURE_VIRT_SSBD)) in init_speculation_control()
953 if (cpu_has(c, X86_FEATURE_AMD_IBRS)) { in init_speculation_control()
[all …]
Dhygon.c96 if (cpu_has(c, X86_FEATURE_CONSTANT_TSC)) { in bsp_init_hygon()
104 if (cpu_has(c, X86_FEATURE_MWAITX)) in bsp_init_hygon()
196 if (cpu_has(c, X86_FEATURE_SVM)) { in init_hygon()
204 if (cpu_has(c, X86_FEATURE_XMM2)) { in init_hygon()
Dintel.c173 if (cpu_has(c, X86_FEATURE_HYPERVISOR)) in bad_spectre_microcode()
245 if (c->x86 >= 6 && !cpu_has(c, X86_FEATURE_IA64)) in early_init_intel()
249 if ((cpu_has(c, X86_FEATURE_SPEC_CTRL) || in early_init_intel()
250 cpu_has(c, X86_FEATURE_INTEL_STIBP) || in early_init_intel()
251 cpu_has(c, X86_FEATURE_IBRS) || cpu_has(c, X86_FEATURE_IBPB) || in early_init_intel()
252 cpu_has(c, X86_FEATURE_STIBP)) && bad_spectre_microcode(c)) { in early_init_intel()
362 if (cpu_has(c, X86_FEATURE_TME)) in early_init_intel()
570 if (cpu_has(c, X86_FEATURE_XMM2)) in init_intel()
1224 if (!cpu_has(c, X86_FEATURE_CORE_CAPABILITIES)) in split_lock_setup()
Dperfctr-watchdog.c55 if (cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) in nmi_perfctr_msr_to_bit()
88 if (cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) in nmi_evntsel_msr_to_bit()
Dproc.c88 if (cpu_has(c, X86_FEATURE_TSC)) { in show_cpuinfo()
103 if (cpu_has(c, i) && x86_cap_flags[i] != NULL) in show_cpuinfo()
107 if (cpu_has(c, X86_FEATURE_VMX) && c->vmx_capability[0]) { in show_cpuinfo()
Drdrand.c31 if (!cpu_has(c, X86_FEATURE_RDRAND)) in x86_init_rdrand()
Dmatch.c51 if (m->feature != X86_FEATURE_ANY && !cpu_has(c, m->feature)) in x86_match_cpu()
Dtopology_amd.c156 if (cpu_has(c, X86_FEATURE_TOPOEXT) || c->x86_vendor != X86_VENDOR_AMD || in topoext_fixup()
/linux-6.12.1/drivers/thermal/intel/
Dtherm_throt.c477 if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) { in thermal_throttle_add_dev()
485 if (cpu_has(c, X86_FEATURE_PTS)) { in thermal_throttle_add_dev()
504 if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) { in thermal_throttle_add_dev()
695 if (!cpu_has(c, X86_FEATURE_ACPI) || !cpu_has(c, X86_FEATURE_ACC)) in intel_thermal_supported()
754 if (cpu_has(c, X86_FEATURE_TM2)) { in intel_init_thermal()
771 if (cpu_has(c, X86_FEATURE_PLN) && !int_pln_enable) in intel_init_thermal()
775 else if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) in intel_init_thermal()
783 if (cpu_has(c, X86_FEATURE_PTS)) { in intel_init_thermal()
785 if (cpu_has(c, X86_FEATURE_PLN) && !int_pln_enable) in intel_init_thermal()
790 else if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) in intel_init_thermal()
[all …]
Dx86_pkg_temp_thermal.c465 if (!cpu_has(c, X86_FEATURE_DTHERM) || !cpu_has(c, X86_FEATURE_PTS)) in pkg_thermal_cpu_online()
/linux-6.12.1/arch/x86/include/asm/
Dacpi.h126 if (cpu_has(c, X86_FEATURE_EST)) in arch_acpi_set_proc_cap_bits()
129 if (cpu_has(c, X86_FEATURE_ACPI)) in arch_acpi_set_proc_cap_bits()
132 if (cpu_has(c, X86_FEATURE_HWP)) in arch_acpi_set_proc_cap_bits()
139 if (!cpu_has(c, X86_FEATURE_MWAIT) || in arch_acpi_set_proc_cap_bits()
Dcpufeature.h126 #define cpu_has(c, bit) \ macro
145 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit)
202 #define cpu_has_bug(c, bit) cpu_has(c, (bit))
/linux-6.12.1/arch/um/include/asm/
Dcpufeature.h36 #define cpu_has(c, bit) \ macro
54 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit)
126 #define cpu_has_bug(c, bit) cpu_has(c, (bit))
/linux-6.12.1/arch/x86/kernel/cpu/mtrr/
Dif.c415 if ((!cpu_has(c, X86_FEATURE_MTRR)) && in mtrr_if_init()
416 (!cpu_has(c, X86_FEATURE_K6_MTRR)) && in mtrr_if_init()
417 (!cpu_has(c, X86_FEATURE_CYRIX_ARR)) && in mtrr_if_init()
418 (!cpu_has(c, X86_FEATURE_CENTAUR_MCR))) in mtrr_if_init()
/linux-6.12.1/arch/x86/kernel/cpu/mce/
Dp5.c54 if (!cpu_has(c, X86_FEATURE_MCE)) in intel_p5_mcheck_init()
/linux-6.12.1/arch/loongarch/crypto/
Dcrc32-loongarch.c271 if (!cpu_has(CPU_FEATURE_CRC32)) in crc32_mod_init()
287 if (!cpu_has(CPU_FEATURE_CRC32)) in crc32_mod_exit()
/linux-6.12.1/arch/loongarch/include/asm/
Dcpu-features.h16 #define cpu_has(feat) (cpu_data[0].options & BIT_ULL(feat)) macro
/linux-6.12.1/arch/um/kernel/
Dum_arch.c84 seq_printf(m, "fpu\t\t: %s\n", cpu_has(&boot_cpu_data, X86_FEATURE_FPU) ? "yes" : "no"); in show_cpuinfo()
87 if (cpu_has(&boot_cpu_data, i) && (x86_cap_flags[i] != NULL)) in show_cpuinfo()
/linux-6.12.1/drivers/cpufreq/
Dspeedstep-centrino.c353 !cpu_has(cpu, X86_FEATURE_EST)) in centrino_cpu_init()
356 if (cpu_has(cpu, X86_FEATURE_CONSTANT_TSC)) in centrino_cpu_init()
Dp4-clockmod.c121 if (cpu_has(c, X86_FEATURE_EST)) in cpufreq_p4_get_frequency()
Dacpi-cpufreq.c189 return cpu_has(cpu, X86_FEATURE_EST); in check_est_cpu()
196 return cpu_has(cpu, X86_FEATURE_HW_PSTATE); in check_amd_hwpstate_cpu()
712 if (cpu_has(c, X86_FEATURE_CONSTANT_TSC)) in acpi_cpufreq_cpu_init()
Dlongrun.c171 if (cpu_has(c, X86_FEATURE_LRTI)) { in longrun_determine_freqs()
/linux-6.12.1/arch/x86/kernel/cpu/resctrl/
Dcore.c1055 if (!cpu_has(c, X86_FEATURE_CQM_LLC)) { in resctrl_cpu_detect()
1065 if (cpu_has(c, X86_FEATURE_CQM_OCCUP_LLC) || in resctrl_cpu_detect()
1066 cpu_has(c, X86_FEATURE_CQM_MBM_TOTAL) || in resctrl_cpu_detect()
1067 cpu_has(c, X86_FEATURE_CQM_MBM_LOCAL)) { in resctrl_cpu_detect()

12