diff options
Diffstat (limited to 'tools/power/cpupower/utils/helpers/amd.c')
-rw-r--r-- | tools/power/cpupower/utils/helpers/amd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/power/cpupower/utils/helpers/amd.c b/tools/power/cpupower/utils/helpers/amd.c index 5e44e31fc7f9..87d5605bdda8 100644 --- a/tools/power/cpupower/utils/helpers/amd.c +++ b/tools/power/cpupower/utils/helpers/amd.c | |||
@@ -53,8 +53,8 @@ static int get_cof(int family, union msr_pstate pstate) | |||
53 | if (family == 0x11) | 53 | if (family == 0x11) |
54 | t = 0x8; | 54 | t = 0x8; |
55 | 55 | ||
56 | return ((100 * (fid + t)) >> did); | 56 | return (100 * (fid + t)) >> did; |
57 | } | 57 | } |
58 | 58 | ||
59 | /* Needs: | 59 | /* Needs: |
60 | * cpu -> the cpu that gets evaluated | 60 | * cpu -> the cpu that gets evaluated |
@@ -74,7 +74,7 @@ int decode_pstates(unsigned int cpu, unsigned int cpu_family, | |||
74 | { | 74 | { |
75 | int i, psmax, pscur; | 75 | int i, psmax, pscur; |
76 | union msr_pstate pstate; | 76 | union msr_pstate pstate; |
77 | unsigned long long val; | 77 | unsigned long long val; |
78 | 78 | ||
79 | /* Only read out frequencies from HW when CPU might be boostable | 79 | /* Only read out frequencies from HW when CPU might be boostable |
80 | to keep the code as short and clean as possible. | 80 | to keep the code as short and clean as possible. |
@@ -95,7 +95,7 @@ int decode_pstates(unsigned int cpu, unsigned int cpu_family, | |||
95 | 95 | ||
96 | pscur += boost_states; | 96 | pscur += boost_states; |
97 | psmax += boost_states; | 97 | psmax += boost_states; |
98 | for (i=0; i<=psmax; i++) { | 98 | for (i = 0; i <= psmax; i++) { |
99 | if (i >= MAX_HW_PSTATES) { | 99 | if (i >= MAX_HW_PSTATES) { |
100 | fprintf(stderr, "HW pstates [%d] exceeding max [%d]\n", | 100 | fprintf(stderr, "HW pstates [%d] exceeding max [%d]\n", |
101 | psmax, MAX_HW_PSTATES); | 101 | psmax, MAX_HW_PSTATES); |