aboutsummaryrefslogtreecommitdiffstats
path: root/tools/power/cpupower/utils/helpers/amd.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2011-04-19 14:16:05 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2011-07-29 12:35:39 -0400
commit2cd005cac6d586b8ca324814a9c58ed0c08ffe40 (patch)
tree6c5fb6c321598dff913ab0e948bab809859c9756 /tools/power/cpupower/utils/helpers/amd.c
parentb510b54127a4d4112a9a3f200339719bcb463c15 (diff)
cpupowerutils: helpers - ConfigStyle bugfixes
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'tools/power/cpupower/utils/helpers/amd.c')
-rw-r--r--tools/power/cpupower/utils/helpers/amd.c8
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);