aboutsummaryrefslogtreecommitdiffstats
path: root/tools/power
diff options
context:
space:
mode:
authorPrarit Bhargava <prarit@redhat.com>2018-10-08 11:06:18 -0400
committerShuah Khan (Samsung OSG) <shuah@kernel.org>2018-10-08 09:19:05 -0600
commit8c22e2f695920ebd94f9a53bcf2a65eb36d4dba1 (patch)
tree175c12eb2d1c388ed2565617c939893679ce91a3 /tools/power
parentcpupower: remove stringop-truncation waring (diff)
downloadlinux-dev-8c22e2f695920ebd94f9a53bcf2a65eb36d4dba1.tar.xz
linux-dev-8c22e2f695920ebd94f9a53bcf2a65eb36d4dba1.zip
cpupower: Fix AMD Family 0x17 msr_pstate size
The msr_pstate data is only 63 bits long and should be 64 bits. Add in the missing bit from res1 for AMD Family 0x17. Reference: https://www.amd.com/system/files/TechDocs/54945_PPR_Family_17h_Models_00h-0Fh.pdf, page 138. Signed-off-by: Prarit Bhargava <prarit@redhat.com> Cc: Shuah Khan <shuah@kernel.org> Cc: Stafford Horne <shorne@gmail.com> Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Diffstat (limited to 'tools/power')
-rw-r--r--tools/power/cpupower/utils/helpers/amd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/cpupower/utils/helpers/amd.c b/tools/power/cpupower/utils/helpers/amd.c
index bb41cdd0df6b..eed31b27909b 100644
--- a/tools/power/cpupower/utils/helpers/amd.c
+++ b/tools/power/cpupower/utils/helpers/amd.c
@@ -33,7 +33,7 @@ union msr_pstate {
unsigned vid:8;
unsigned iddval:8;
unsigned idddiv:2;
- unsigned res1:30;
+ unsigned res1:31;
unsigned en:1;
} fam17h_bits;
unsigned long long val;