misc.c (f5db340f19f14a8df9dfd22d71fba1513e9f1f7e) misc.c (d0e4a193c33adaa4f91128d5393aa3589c2f3e9e)
1#if defined(__i386__) || defined(__x86_64__)
2
3#include "helpers/helpers.h"
4
5#define MSR_AMD_HWCR 0xc0010015
6
7int cpufreq_has_boost_support(unsigned int cpu, int *support, int *active,
8 int *states)
9{
10 struct cpupower_cpu_info cpu_info;
11 int ret;
12 unsigned long long val;
13
14 *support = *active = *states = 0;
15
1#if defined(__i386__) || defined(__x86_64__)
2
3#include "helpers/helpers.h"
4
5#define MSR_AMD_HWCR 0xc0010015
6
7int cpufreq_has_boost_support(unsigned int cpu, int *support, int *active,
8 int *states)
9{
10 struct cpupower_cpu_info cpu_info;
11 int ret;
12 unsigned long long val;
13
14 *support = *active = *states = 0;
15
16 ret = get_cpu_info(0, &cpu_info);
16 ret = get_cpu_info(&cpu_info);
17 if (ret)
18 return ret;
19
20 if (cpupower_cpu_info.caps & CPUPOWER_CAP_AMD_CBP) {
21 *support = 1;
22
23 /* AMD Family 0x17 does not utilize PCI D18F4 like prior
24 * families and has no fixed discrete boost states but

--- 18 unchanged lines hidden ---
17 if (ret)
18 return ret;
19
20 if (cpupower_cpu_info.caps & CPUPOWER_CAP_AMD_CBP) {
21 *support = 1;
22
23 /* AMD Family 0x17 does not utilize PCI D18F4 like prior
24 * families and has no fixed discrete boost states but

--- 18 unchanged lines hidden ---