Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlekiller committed Mar 25, 2022
1 parent f5e64cb commit 1baf274
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*.orig
amdctl
/.idea/
.amdctl.c.kate-swp
6 changes: 3 additions & 3 deletions amdctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ void printCpuPstate(const unsigned char idd) {
if (!idd) {
printf("%7s%7s%8s%9s", "", "", "", "");
}
printf("%6d%5hdmV", NbVid, vidTomV(NbVid));
printf("%6d%5dmV", NbVid, vidTomV(NbVid));
}
printf("\n");
}
Expand Down Expand Up @@ -759,7 +759,7 @@ void rwMsrReg(const uint32_t reg, const unsigned char read) {
}

/**
* Read or write data to specified PCI location at specified66 register.
* Read or write data to specified PCI location at specified register.
* @param loc -> PCI location to read or write to.
* @param reg -> Register to read or write to.
* @param read -> 1 to read data, 0 to write data.
Expand Down Expand Up @@ -917,7 +917,7 @@ float getCpuMultiplier(const unsigned short CpuFid, const unsigned short CpuDid)
case AMD11H:
return (float) (CpuFid + 0x08) / (float) (2 << CpuDid);
case AMD12H:
return (float) (CpuFid + 0x10f) / getDiv(CpuDid);
return (float) (CpuFid + 0x10) / getDiv(CpuDid);
case AMD14H:
return getClockSpeed(CpuFid, CpuDid) / (float) REFCLK;
case AMD17H:
Expand Down

0 comments on commit 1baf274

Please sign in to comment.