1 #if defined(__i386__) || defined(__x86_64__)
3 #include "helpers/helpers.h"
5 int cpufreq_has_boost_support(unsigned int cpu, int *support, int *active,
8 struct cpupower_cpu_info cpu_info;
11 *support = *active = *states = 0;
13 ret = get_cpu_info(0, &cpu_info);
17 if (cpupower_cpu_info.caps & CPUPOWER_CAP_AMD_CBP) {
19 amd_pci_get_num_boost_states(active, states);
23 } else if (cpupower_cpu_info.vendor == X86_VENDOR_INTEL) {
24 ret = msr_intel_has_boost_support(cpu);
28 ret = msr_intel_boost_is_active(cpu);
35 #endif /* #if defined(__i386__) || defined(__x86_64__) */