Home
last modified time | relevance | path

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

/arch/x86/kernel/cpu/mcheck/
Dtherm_throt.c251 if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) in thermal_throttle_add_dev()
255 if (cpu_has(c, X86_FEATURE_PTS)) { in thermal_throttle_add_dev()
259 if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) in thermal_throttle_add_dev()
457 if (!cpu_has(c, X86_FEATURE_ACPI) || !cpu_has(c, X86_FEATURE_ACC)) in intel_thermal_supported()
511 if (cpu_has(c, X86_FEATURE_TM2)) { in intel_init_thermal()
525 if (cpu_has(c, X86_FEATURE_PLN) && !int_pln_enable) in intel_init_thermal()
529 else if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) in intel_init_thermal()
537 if (cpu_has(c, X86_FEATURE_PTS)) { in intel_init_thermal()
539 if (cpu_has(c, X86_FEATURE_PLN) && !int_pln_enable) in intel_init_thermal()
544 else if (cpu_has(c, X86_FEATURE_PLN) && int_pln_enable) in intel_init_thermal()
Dp5.c52 if (!cpu_has(c, X86_FEATURE_MCE)) in intel_p5_mcheck_init()
Dmce.c491 return cpu_has(c, X86_FEATURE_MCE) && cpu_has(c, X86_FEATURE_MCA); in mce_available()
1704 mce_flags.overflow_recov = !!cpu_has(c, X86_FEATURE_OVERFLOW_RECOV); in __mcheck_cpu_init_early()
1705 mce_flags.succor = !!cpu_has(c, X86_FEATURE_SUCCOR); in __mcheck_cpu_init_early()
1706 mce_flags.smca = !!cpu_has(c, X86_FEATURE_SMCA); in __mcheck_cpu_init_early()
/arch/x86/include/asm/
Dacpi.h116 if (cpu_has(c, X86_FEATURE_EST)) in arch_acpi_set_pdc_bits()
119 if (cpu_has(c, X86_FEATURE_ACPI)) in arch_acpi_set_pdc_bits()
125 if (!cpu_has(c, X86_FEATURE_MWAIT)) in arch_acpi_set_pdc_bits()
Dcpufeature.h109 #define cpu_has(c, bit) \ macro
128 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit)
206 #define cpu_has_bug(c, bit) cpu_has(c, (bit))
/arch/x86/kernel/cpu/
Dintel.c58 if (cpu_has(c, X86_FEATURE_MPX) && !cpu_has(c, X86_FEATURE_SMEP)) { in check_mpx_erratum()
109 if (cpu_has(c, X86_FEATURE_HYPERVISOR)) in bad_spectre_microcode()
137 if (c->x86 >= 6 && !cpu_has(c, X86_FEATURE_IA64)) { in early_init_intel()
147 if ((cpu_has(c, X86_FEATURE_SPEC_CTRL) || in early_init_intel()
148 cpu_has(c, X86_FEATURE_INTEL_STIBP) || in early_init_intel()
149 cpu_has(c, X86_FEATURE_IBRS) || cpu_has(c, X86_FEATURE_IBPB) || in early_init_intel()
150 cpu_has(c, X86_FEATURE_STIBP)) && bad_spectre_microcode(c)) { in early_init_intel()
502 if (!cpu_has(c, X86_FEATURE_EPB)) in init_intel_energy_perf()
539 if (!cpu_has(c, X86_FEATURE_XTOPOLOGY)) { in init_intel()
565 if (cpu_has(c, X86_FEATURE_XMM2)) in init_intel()
[all …]
Damd.c210 if (!cpu_has(c, X86_FEATURE_XMM)) { in init_amd_k7()
260 if (cpu_has(c, X86_FEATURE_MP)) in init_amd_k7()
345 } else if (cpu_has(c, X86_FEATURE_NODEID_MSR)) { in amd_get_topology()
504 if (cpu_has(c, X86_FEATURE_CONSTANT_TSC)) { in bsp_init_amd()
531 if (cpu_has(c, X86_FEATURE_MWAITX)) in bsp_init_amd()
632 if (c->x86_model < 0x14 && cpu_has(c, X86_FEATURE_LAHF_LM)) { in init_amd_k8()
708 !cpu_has(c, X86_FEATURE_TOPOEXT)) { in init_amd_bd()
784 if (cpu_has(c, X86_FEATURE_XMM2)) { in init_amd()
823 if (!cpu_has(c, X86_FEATURE_3DNOWPREFETCH)) in init_amd()
824 if (cpu_has(c, X86_FEATURE_3DNOW) || cpu_has(c, X86_FEATURE_LM)) in init_amd()
[all …]
Dcommon.c259 if (!cpu_has(c, X86_FEATURE_PN) || !disable_x86_serial_nr) in squash_the_stupid_serial_number()
302 if (cpu_has(c, X86_FEATURE_SMEP)) in setup_smep()
320 if (cpu_has(c, X86_FEATURE_SMAP)) { in setup_smap()
331 if (cpu_has(c, X86_FEATURE_PCID)) { in setup_pcid()
332 if (cpu_has(c, X86_FEATURE_PGE) || kaiser_enabled) { in setup_pcid()
345 if (cpu_has(c, X86_FEATURE_INVPCID)) in setup_pcid()
373 if (!cpu_has(c, X86_FEATURE_PKU)) in setup_pku()
432 if (!cpu_has(c, df->feature)) in filter_cpuid_features()
616 if (!cpu_has(c, X86_FEATURE_HT)) in detect_ht()
619 if (cpu_has(c, X86_FEATURE_CMP_LEGACY)) in detect_ht()
[all …]
Dperfctr-watchdog.c53 if (cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) in nmi_perfctr_msr_to_bit()
81 if (cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) in nmi_evntsel_msr_to_bit()
Drdrand.c48 if (!cpu_has(c, X86_FEATURE_RDRAND)) in x86_init_rdrand()
Dmatch.c43 if (m->feature != X86_FEATURE_ANY && !cpu_has(c, m->feature)) in x86_match_cpu()
Dproc.c80 if (cpu_has(c, X86_FEATURE_TSC)) { in show_cpuinfo()
98 if (cpu_has(c, i) && x86_cap_flags[i] != NULL) in show_cpuinfo()
/arch/x86/kernel/cpu/mtrr/
Dif.c438 if ((!cpu_has(c, X86_FEATURE_MTRR)) && in mtrr_if_init()
439 (!cpu_has(c, X86_FEATURE_K6_MTRR)) && in mtrr_if_init()
440 (!cpu_has(c, X86_FEATURE_CYRIX_ARR)) && in mtrr_if_init()
441 (!cpu_has(c, X86_FEATURE_CENTAUR_MCR))) in mtrr_if_init()
/arch/x86/kernel/
Dmsr.c164 if (!cpu_has(c, X86_FEATURE_MSR)) in msr_open()
Dprocess.c396 if (!cpu_has(c, X86_FEATURE_MWAIT) || static_cpu_has_bug(X86_BUG_MONITOR)) in prefer_mwait_c1_over_halt()
Dtsc.c1386 int constant_tsc = cpu_has(&cpu_data(cpu), X86_FEATURE_CONSTANT_TSC); in calibrate_delay_is_known()
/arch/x86/kernel/cpu/microcode/
Dintel.c1147 cpu_has(c, X86_FEATURE_IA64)) { in init_intel_microcode()
/arch/x86/events/intel/
Dcore.c3575 if (!cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) { in intel_pmu_init()
/arch/x86/kvm/
Dsvm.c796 if (cpu_has(&boot_cpu_data, X86_FEATURE_OSVW)) { in svm_hardware_enable()