Home
last modified time | relevance | path

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

12

/Linux-v6.1/arch/x86/kernel/cpu/
Damd.c222 if (!cpu_has(c, X86_FEATURE_XMM)) { in init_amd_k7()
270 if (cpu_has(c, X86_FEATURE_MP)) in init_amd_k7()
363 } else if (cpu_has(c, X86_FEATURE_NODEID_MSR)) { in amd_get_topology()
482 if (cpu_has(c, X86_FEATURE_CONSTANT_TSC)) { in bsp_init_amd()
509 if (cpu_has(c, X86_FEATURE_MWAITX)) in bsp_init_amd()
567 if (cpu_has(c, X86_FEATURE_SME) || cpu_has(c, X86_FEATURE_SEV)) { in early_detect_mem_encrypt()
684 !cpu_has(c, X86_FEATURE_TOPOEXT)) { in early_init_amd()
695 if (cpu_has(c, X86_FEATURE_TOPOEXT)) in early_init_amd()
714 if (c->x86_model < 0x14 && cpu_has(c, X86_FEATURE_LAHF_LM)) { in init_amd_k8()
876 if (!cpu_has(c, X86_FEATURE_HYPERVISOR) && cpu_has(c, X86_FEATURE_AMD_STIBP)) { in init_spectral_chicken()
[all …]
Dfeat_ctl.c125 enable_vmx = cpu_has(c, X86_FEATURE_VMX) && in init_ia32_feat_ctl()
128 if (cpu_has(c, X86_FEATURE_SGX) && IS_ENABLED(CONFIG_X86_SGX)) { in init_ia32_feat_ctl()
135 enable_sgx_driver = cpu_has(c, X86_FEATURE_SGX_LC); in init_ia32_feat_ctl()
171 if (!cpu_has(c, X86_FEATURE_VMX)) in init_ia32_feat_ctl()
198 if (!cpu_has(c, X86_FEATURE_VMX) && enable_sgx_kvm) { in init_ia32_feat_ctl()
Dhygon.c53 if (cpu_has(c, X86_FEATURE_TOPOEXT)) in hygon_get_topology_early()
93 } else if (cpu_has(c, X86_FEATURE_NODEID_MSR)) { in hygon_get_topology()
203 if (cpu_has(c, X86_FEATURE_CONSTANT_TSC)) { in bsp_init_hygon()
211 if (cpu_has(c, X86_FEATURE_MWAITX)) in bsp_init_hygon()
322 if (cpu_has(c, X86_FEATURE_XMM2)) { in init_hygon()
342 if (!cpu_has(c, X86_FEATURE_XENPV)) in init_hygon()
Dcommon.c341 if (!cpu_has(c, X86_FEATURE_PN) || !disable_x86_serial_nr) in squash_the_stupid_serial_number()
375 if (cpu_has(c, X86_FEATURE_SMEP)) in setup_smep()
386 if (cpu_has(c, X86_FEATURE_SMAP)) in setup_smap()
397 if (!cpu_has(c, X86_FEATURE_UMIP)) in setup_umip()
647 if (!cpu_has(c, df->feature)) in filter_cpuid_features()
865 if (!cpu_has(c, X86_FEATURE_HT)) in detect_ht_early()
868 if (cpu_has(c, X86_FEATURE_CMP_LEGACY)) in detect_ht_early()
871 if (cpu_has(c, X86_FEATURE_XTOPOLOGY)) in detect_ht_early()
974 if (cpu_has(c, X86_FEATURE_SPEC_CTRL)) { in init_speculation_control()
980 if (cpu_has(c, X86_FEATURE_INTEL_STIBP)) in init_speculation_control()
[all …]
Dintel.c173 if (cpu_has(c, X86_FEATURE_HYPERVISOR)) in bad_spectre_microcode()
236 if (c->x86 >= 6 && !cpu_has(c, X86_FEATURE_IA64)) in early_init_intel()
240 if ((cpu_has(c, X86_FEATURE_SPEC_CTRL) || in early_init_intel()
241 cpu_has(c, X86_FEATURE_INTEL_STIBP) || in early_init_intel()
242 cpu_has(c, X86_FEATURE_IBRS) || cpu_has(c, X86_FEATURE_IBPB) || in early_init_intel()
243 cpu_has(c, X86_FEATURE_STIBP)) && bad_spectre_microcode(c)) { in early_init_intel()
658 if (!cpu_has(c, X86_FEATURE_XTOPOLOGY)) { in init_intel()
678 if (cpu_has(c, X86_FEATURE_XMM2)) in init_intel()
750 if (cpu_has(c, X86_FEATURE_TME)) in init_intel()
1313 if (!cpu_has(c, X86_FEATURE_CORE_CAPABILITIES)) in split_lock_setup()
Dproc.c86 if (cpu_has(c, X86_FEATURE_TSC)) { in show_cpuinfo()
101 if (cpu_has(c, i) && x86_cap_flags[i] != NULL) in show_cpuinfo()
105 if (cpu_has(c, X86_FEATURE_VMX) && c->vmx_capability[0]) { in show_cpuinfo()
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()
Drdrand.c30 if (!cpu_has(c, X86_FEATURE_RDRAND)) in x86_init_rdrand()
Dmatch.c54 if (m->feature != X86_FEATURE_ANY && !cpu_has(c, m->feature)) in x86_match_cpu()
/Linux-v6.1/drivers/thermal/intel/
Dtherm_throt.c417 if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) { in thermal_throttle_add_dev()
425 if (cpu_has(c, X86_FEATURE_PTS)) { in thermal_throttle_add_dev()
444 if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) { in thermal_throttle_add_dev()
635 if (!cpu_has(c, X86_FEATURE_ACPI) || !cpu_has(c, X86_FEATURE_ACC)) in intel_thermal_supported()
694 if (cpu_has(c, X86_FEATURE_TM2)) { in intel_init_thermal()
708 if (cpu_has(c, X86_FEATURE_PLN) && !int_pln_enable) in intel_init_thermal()
712 else if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) in intel_init_thermal()
720 if (cpu_has(c, X86_FEATURE_PTS)) { in intel_init_thermal()
722 if (cpu_has(c, X86_FEATURE_PLN) && !int_pln_enable) in intel_init_thermal()
727 else if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) in intel_init_thermal()
[all …]
Dx86_pkg_temp_thermal.c477 if (!cpu_has(c, X86_FEATURE_DTHERM) || !cpu_has(c, X86_FEATURE_PTS)) in pkg_thermal_cpu_online()
/Linux-v6.1/arch/um/include/asm/
Dcpufeature.h36 #define cpu_has(c, bit) \ macro
55 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit)
127 #define cpu_has_bug(c, bit) cpu_has(c, (bit))
/Linux-v6.1/arch/x86/include/asm/
Dacpi.h101 if (cpu_has(c, X86_FEATURE_EST)) in arch_acpi_set_pdc_bits()
104 if (cpu_has(c, X86_FEATURE_ACPI)) in arch_acpi_set_pdc_bits()
110 if (!cpu_has(c, X86_FEATURE_MWAIT)) in arch_acpi_set_pdc_bits()
Dcpufeature.h124 #define cpu_has(c, bit) \ macro
144 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit)
198 #define cpu_has_bug(c, bit) cpu_has(c, (bit))
/Linux-v6.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-v6.1/arch/x86/kernel/cpu/mce/
Dp5.c54 if (!cpu_has(c, X86_FEATURE_MCE)) in intel_p5_mcheck_init()
Dcore.c448 return cpu_has(c, X86_FEATURE_MCE) && cpu_has(c, X86_FEATURE_MCA); in mce_available()
1942 mce_flags.overflow_recov = !!cpu_has(c, X86_FEATURE_OVERFLOW_RECOV); in __mcheck_cpu_init_early()
1943 mce_flags.succor = !!cpu_has(c, X86_FEATURE_SUCCOR); in __mcheck_cpu_init_early()
1944 mce_flags.smca = !!cpu_has(c, X86_FEATURE_SMCA); in __mcheck_cpu_init_early()
/Linux-v6.1/arch/loongarch/include/asm/
Dcpu-features.h16 #define cpu_has(feat) (cpu_data[0].options & BIT_ULL(feat)) macro
/Linux-v6.1/arch/x86/kernel/cpu/resctrl/
Dcore.c875 if (!cpu_has(c, X86_FEATURE_CQM_LLC)) { in resctrl_cpu_detect()
885 if (cpu_has(c, X86_FEATURE_CQM_OCCUP_LLC) || in resctrl_cpu_detect()
886 cpu_has(c, X86_FEATURE_CQM_MBM_TOTAL) || in resctrl_cpu_detect()
887 cpu_has(c, X86_FEATURE_CQM_MBM_LOCAL)) { in resctrl_cpu_detect()
/Linux-v6.1/arch/um/kernel/
Dum_arch.c82 seq_printf(m, "fpu\t\t: %s\n", cpu_has(&boot_cpu_data, X86_FEATURE_FPU) ? "yes" : "no"); in show_cpuinfo()
85 if (cpu_has(&boot_cpu_data, i) && (x86_cap_flags[i] != NULL)) in show_cpuinfo()
/Linux-v6.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()
715 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-v6.1/arch/x86/kernel/
Dmsr.c219 if (!cpu_has(c, X86_FEATURE_MSR)) in msr_open()

12