Skip to content

Commit

Permalink
Update amdctl.c
Browse files Browse the repository at this point in the history
Correction: AMD14H has 12.5 mA (VID_DIVIDOR2) divider/multiplier
  • Loading branch information
sidorsett authored Nov 13, 2022
1 parent 061ef01 commit 274119c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions amdctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,8 +873,7 @@ unsigned short vidTomV(const unsigned short vid) {
}

// https://github.com/mpollice/AmdMsrTweaker/blob/master/Info.cpp#L47
if (cpuFamily == AMD14H ||
(cpuFamily == AMD15H && ((cpuModel > 0x0f && cpuModel < 0x20) || (cpuModel > 0x2f && cpuModel < 0x40))) ||
if ((cpuFamily == AMD15H && ((cpuModel > 0x0f && cpuModel < 0x20) || (cpuModel > 0x2f && cpuModel < 0x40))) ||
cpuFamily == AMD17H ||
cpuFamily == AMD19H) {
return (MAX_VOLTAGE - (vid * VID_DIVIDOR3));
Expand Down

0 comments on commit 274119c

Please sign in to comment.