forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/tools/power/cpupower/utils/helpers/amd.c
....@@ -45,7 +45,7 @@
4545
4646 if (family == 0x12)
4747 t = pstate.val & 0xf;
48
- else if (family == 0x17)
48
+ else if (family == 0x17 || family == 0x18)
4949 t = pstate.fam17h_bits.did;
5050 else
5151 t = pstate.bits.did;
....@@ -59,7 +59,7 @@
5959 int fid, did, cof;
6060
6161 did = get_did(family, pstate);
62
- if (family == 0x17) {
62
+ if (family == 0x17 || family == 0x18) {
6363 fid = pstate.fam17h_bits.fid;
6464 cof = 200 * fid / did;
6565 } else {