Home
last modified time | relevance | path

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

/linux-4.4.14/arch/x86/include/asm/
Dcpufeature.h345 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) macro
358 #define cpu_has_fpu boot_cpu_has(X86_FEATURE_FPU)
359 #define cpu_has_de boot_cpu_has(X86_FEATURE_DE)
360 #define cpu_has_pse boot_cpu_has(X86_FEATURE_PSE)
361 #define cpu_has_tsc boot_cpu_has(X86_FEATURE_TSC)
362 #define cpu_has_pge boot_cpu_has(X86_FEATURE_PGE)
363 #define cpu_has_apic boot_cpu_has(X86_FEATURE_APIC)
364 #define cpu_has_sep boot_cpu_has(X86_FEATURE_SEP)
365 #define cpu_has_mtrr boot_cpu_has(X86_FEATURE_MTRR)
366 #define cpu_has_mmx boot_cpu_has(X86_FEATURE_MMX)
[all …]
Dapic.h448 if (APIC_XAPIC(ver) || boot_cpu_has(X86_FEATURE_EXTD_APICID)) in default_get_apic_id()
/linux-4.4.14/arch/x86/crypto/
Dsha1_ssse3_glue.c115 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha1_ssse3()
122 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha1_ssse3()
204 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) in avx2_usable()
205 && boot_cpu_has(X86_FEATURE_BMI1) in avx2_usable()
206 && boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable()
318 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in register_sha1_ni()
325 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in unregister_sha1_ni()
Dsha256_ssse3_glue.c135 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha256_ssse3()
143 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha256_ssse3()
287 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) && in avx2_usable()
288 boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable()
369 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in register_sha256_ni()
377 if (boot_cpu_has(X86_FEATURE_SHA_NI)) in unregister_sha256_ni()
Dsha512_ssse3_glue.c135 if (boot_cpu_has(X86_FEATURE_SSSE3)) in register_sha512_ssse3()
143 if (boot_cpu_has(X86_FEATURE_SSSE3)) in unregister_sha512_ssse3()
287 if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2) && in avx2_usable()
288 boot_cpu_has(X86_FEATURE_BMI2)) in avx2_usable()
Daesni-intel_glue.c1465 if (boot_cpu_has(X86_FEATURE_AVX2)) { in aesni_init()
1472 if (boot_cpu_has(X86_FEATURE_AVX)) { in aesni_init()
/linux-4.4.14/lib/raid6/
Dsse1.c37 return boot_cpu_has(X86_FEATURE_MMX) && in raid6_have_sse1_or_mmxext()
38 (boot_cpu_has(X86_FEATURE_XMM) || in raid6_have_sse1_or_mmxext()
39 boot_cpu_has(X86_FEATURE_MMXEXT)); in raid6_have_sse1_or_mmxext()
Drecov_ssse3.c17 return boot_cpu_has(X86_FEATURE_XMM) && in raid6_has_ssse3()
18 boot_cpu_has(X86_FEATURE_XMM2) && in raid6_has_ssse3()
19 boot_cpu_has(X86_FEATURE_SSSE3); in raid6_has_ssse3()
Dsse2.c32 return boot_cpu_has(X86_FEATURE_MMX) && in raid6_have_sse2()
33 boot_cpu_has(X86_FEATURE_FXSR) && in raid6_have_sse2()
34 boot_cpu_has(X86_FEATURE_XMM) && in raid6_have_sse2()
35 boot_cpu_has(X86_FEATURE_XMM2); in raid6_have_sse2()
Drecov_avx2.c18 return boot_cpu_has(X86_FEATURE_AVX2) && in raid6_has_avx2()
19 boot_cpu_has(X86_FEATURE_AVX); in raid6_has_avx2()
Davx2.c36 return boot_cpu_has(X86_FEATURE_AVX2) && boot_cpu_has(X86_FEATURE_AVX); in raid6_have_avx2()
Dx86.h52 static inline int boot_cpu_has(int flag) in boot_cpu_has() function
Dmmx.c34 return boot_cpu_has(X86_FEATURE_MMX); in raid6_have_mmx()
/linux-4.4.14/arch/x86/kernel/
Dtsc.c956 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in cpufreq_tsc()
1038 if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) in check_system_tsc_reliable()
1056 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in unsynchronized_tsc()
1162 if (boot_cpu_has(X86_FEATURE_NONSTOP_TSC_S3)) in init_tsc_clocksource()
1169 if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) { in init_tsc_clocksource()
Dalternative.c224 } else if (boot_cpu_has(X86_FEATURE_NOPL)) { in arch_init_ideal_nops()
247 if (boot_cpu_has(X86_FEATURE_K8)) in arch_init_ideal_nops()
249 else if (boot_cpu_has(X86_FEATURE_K7)) in arch_init_ideal_nops()
386 if (!boot_cpu_has(a->cpuid)) { in apply_alternatives()
Dmachine_kexec_32.c252 boot_cpu_has(X86_FEATURE_PAE), in machine_kexec()
Dprocess.c360 if (!boot_cpu_has(X86_FEATURE_NONSTOP_TSC)) in amd_e400_idle()
Dhpet.c604 if (boot_cpu_has(X86_FEATURE_ARAT)) in hpet_msi_capability_lookup()
961 if (boot_cpu_has(X86_FEATURE_ARAT)) in hpet_late_init()
/linux-4.4.14/arch/x86/kernel/cpu/mcheck/
Dmce-inject.c217 if (!boot_cpu_has(X86_FEATURE_MCE) || !boot_cpu_has(X86_FEATURE_MCA)) in mce_write()
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_msr.c15 return boot_cpu_has(X86_FEATURE_APERFMPERF); in test_aperfmperf()
214 if (!boot_cpu_has(X86_FEATURE_TSC)) { in msr_init()
Dmshyperv.c121 if (!boot_cpu_has(X86_FEATURE_HYPERVISOR)) in ms_hyperv_platform()
Dcommon.c156 if (!boot_cpu_has(X86_FEATURE_MPX)) in x86_mpx_setup()
998 if (!boot_cpu_has(X86_FEATURE_SEP)) in enable_sep_cpu()
1489 return boot_cpu_has(bit); in __static_cpu_has_safe()
Dperf_event_intel_ds.c1303 if (!boot_cpu_has(X86_FEATURE_DTES64)) in intel_ds_init()
1306 x86_pmu.bts = boot_cpu_has(X86_FEATURE_BTS); in intel_ds_init()
1307 x86_pmu.pebs = boot_cpu_has(X86_FEATURE_PEBS); in intel_ds_init()
Dperf_event_intel_bts.c528 if (!boot_cpu_has(X86_FEATURE_DTES64) || !x86_pmu.bts) in bts_init()
Dperf_event_amd_ibs.c691 if (!boot_cpu_has(X86_FEATURE_IBS)) in __get_ibs_caps()
Dintel_cacheinfo.c269 if (boot_cpu_has(X86_FEATURE_AMD_DCM)) { in amd_cpuid4()
Dperf_event_intel.c2646 if (!boot_cpu_has(X86_FEATURE_RTM) && !boot_cpu_has(X86_FEATURE_HLE)) in hsw_hw_config()
3281 if (boot_cpu_has(X86_FEATURE_PDCM)) { in intel_pmu_init()
Dperf_event.c266 boot_cpu_has(X86_FEATURE_HYPERVISOR) ? KERN_INFO : KERN_ERR, in check_hw_exists()
/linux-4.4.14/drivers/thermal/
Dintel_powerclamp.c715 if (!boot_cpu_has(X86_FEATURE_NONSTOP_TSC) || in powerclamp_probe()
716 !boot_cpu_has(X86_FEATURE_CONSTANT_TSC) || in powerclamp_probe()
717 !boot_cpu_has(X86_FEATURE_MWAIT) || in powerclamp_probe()
718 !boot_cpu_has(X86_FEATURE_ARAT)) in powerclamp_probe()
/linux-4.4.14/drivers/lguest/x86/
Dcore.c264 if (boot_cpu_has(X86_FEATURE_SEP)) in lguest_arch_run_guest()
282 if (boot_cpu_has(X86_FEATURE_SEP)) in lguest_arch_run_guest()
681 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC) && !check_tsc_unstable()) in lguest_arch_init_hypercalls()
/linux-4.4.14/lib/
Datomic64_test.c186 boot_cpu_has(X86_FEATURE_CX8) ? "with" : "without", in test_atomics()
187 boot_cpu_has(X86_FEATURE_XMM) ? "with" : "without"); in test_atomics()
/linux-4.4.14/arch/x86/mm/
Dpat.c746 !(boot_cpu_has(X86_FEATURE_MTRR) || in phys_mem_access_prot_allowed()
747 boot_cpu_has(X86_FEATURE_K6_MTRR) || in phys_mem_access_prot_allowed()
748 boot_cpu_has(X86_FEATURE_CYRIX_ARR) || in phys_mem_access_prot_allowed()
749 boot_cpu_has(X86_FEATURE_CENTAUR_MCR)) && in phys_mem_access_prot_allowed()
/linux-4.4.14/arch/x86/platform/intel-mid/
Dintel-mid.c103 if (!boot_cpu_has(X86_FEATURE_ARAT)) in intel_mid_time_init()
/linux-4.4.14/arch/x86/kvm/
Dpmu_intel.c303 (boot_cpu_has(X86_FEATURE_HLE) || boot_cpu_has(X86_FEATURE_RTM)) && in intel_pmu_refresh()
Dsvm.c887 if (boot_cpu_has(X86_FEATURE_NX)) in svm_hardware_setup()
890 if (boot_cpu_has(X86_FEATURE_FXSR_OPT)) in svm_hardware_setup()
893 if (boot_cpu_has(X86_FEATURE_TSCRATEMSR)) { in svm_hardware_setup()
910 if (!boot_cpu_has(X86_FEATURE_NPT)) in svm_hardware_setup()
1106 if (boot_cpu_has(X86_FEATURE_PAUSEFILTER)) { in init_vmcb()
2945 if (!boot_cpu_has(X86_FEATURE_DECODEASSISTS)) in dr_interception()
3149 if (!boot_cpu_has(X86_FEATURE_LBRV)) { in svm_set_msr()
4022 if (boot_cpu_has(X86_FEATURE_NRIPS)) in svm_set_supported_cpuid()
Dx86.c5502 else if (!boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in tsc_khz_changed()
5626 if (!boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) { in kvm_timer_init()
5831 if (!boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) in kvm_arch_exit()
Dvmx.c1804 if (boot_cpu_has(X86_FEATURE_SMEP)) in update_transition_efer()
1932 if (boot_cpu_has(X86_FEATURE_MPX)) in vmx_save_host_state()
6182 if (boot_cpu_has(X86_FEATURE_NX)) in hardware_setup()
/linux-4.4.14/drivers/acpi/
Dacpi_pad.c48 if (!boot_cpu_has(X86_FEATURE_MWAIT)) in power_saving_mwait_init()
77 if (!boot_cpu_has(X86_FEATURE_NONSTOP_TSC)) in power_saving_mwait_init()
Dacpi_processor.c534 if (boot_cpu_has(X86_FEATURE_HWP)) { in acpi_early_processor_osc()
Dprocessor_perflib.c460 if(boot_cpu_has(X86_FEATURE_EST)) in acpi_processor_get_performance_info()
Dprocessor_idle.c243 if (boot_cpu_has(X86_FEATURE_NONSTOP_TSC)) in tsc_check_state()
/linux-4.4.14/arch/x86/include/asm/fpu/
Dinternal.h253 if (boot_cpu_has(X86_FEATURE_XSAVES)) in copy_xregs_to_kernel_booting()
283 if (boot_cpu_has(X86_FEATURE_XSAVES)) in copy_kernel_to_xregs_booting()
/linux-4.4.14/drivers/cpufreq/
Dp4-clockmod.c263 if (!x86_match_cpu(cpufreq_p4_id) || !boot_cpu_has(X86_FEATURE_ACPI)) in cpufreq_p4_init()
Dacpi-cpufreq.c913 if (boot_cpu_has(X86_FEATURE_CPB) || boot_cpu_has(X86_FEATURE_IDA)) { in acpi_cpufreq_boost_init()
/linux-4.4.14/arch/x86/power/
Dcpu.c211 if (boot_cpu_has(X86_FEATURE_SEP)) in __restore_processor_state()
/linux-4.4.14/drivers/powercap/
Dintel_rapl.c917 if (!boot_cpu_has(X86_FEATURE_PTS) || !boot_cpu_has(X86_FEATURE_PLN)) in package_power_limit_irq_save()
944 if (!boot_cpu_has(X86_FEATURE_PTS) || !boot_cpu_has(X86_FEATURE_PLN)) in package_power_limit_irq_restore()
/linux-4.4.14/drivers/dma/ioat/
Ddca.c96 if (boot_cpu_has(X86_FEATURE_DCA)) in system_has_dca_enabled()
/linux-4.4.14/arch/x86/xen/
Dsetup.c986 if (!boot_cpu_has(sysenter_feature)) in xen_enable_sysenter()
1006 if (boot_cpu_has(X86_FEATURE_SYSCALL32)) { in xen_enable_syscall()
/linux-4.4.14/arch/x86/crypto/sha-mb/
Dsha1_mb.c863 if (!boot_cpu_has(X86_FEATURE_AVX2) || in sha1_mb_mod_init()
864 !boot_cpu_has(X86_FEATURE_BMI2)) in sha1_mb_mod_init()
/linux-4.4.14/drivers/idle/
Dintel_idle.c965 if (boot_cpu_has(X86_FEATURE_ARAT)) /* Always Reliable APIC Timer */ in intel_idle_probe()
1131 !boot_cpu_has(X86_FEATURE_NONSTOP_TSC)) in intel_idle_cpuidle_driver_init()
/linux-4.4.14/arch/x86/kernel/fpu/
Dxstate.c694 if (!boot_cpu_has(X86_FEATURE_XSAVE)) in get_xsave_addr()
/linux-4.4.14/arch/x86/kernel/apic/
Dapic.c327 else if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in __setup_APIC_LVTT()
691 if (boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) { in calibrate_APIC_clock()
Dvector.c858 if (boot_cpu_has(X86_FEATURE_EXTAPIC)) { in print_local_APIC()
/linux-4.4.14/drivers/gpu/drm/gma500/
Dmmu.c482 if (boot_cpu_has(X86_FEATURE_CLFLUSH)) { in psb_mmu_driver_init()
/linux-4.4.14/sound/pci/
Dintel8x0.c2978 result = result || boot_cpu_has(X86_FEATURE_HYPERVISOR); in snd_intel8x0_inside_vm()