From 6778948f9de86c3cfaf36725a7c87dcff9ba247f Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 11 Dec 2023 08:20:59 +0000
Subject: [PATCH] kernel_5.10 no rt
---
kernel/tools/power/cpupower/utils/helpers/amd.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/tools/power/cpupower/utils/helpers/amd.c b/kernel/tools/power/cpupower/utils/helpers/amd.c
index 9607ada..7c4f83a 100644
--- a/kernel/tools/power/cpupower/utils/helpers/amd.c
+++ b/kernel/tools/power/cpupower/utils/helpers/amd.c
@@ -45,7 +45,7 @@
if (family == 0x12)
t = pstate.val & 0xf;
- else if (family == 0x17)
+ else if (family == 0x17 || family == 0x18)
t = pstate.fam17h_bits.did;
else
t = pstate.bits.did;
@@ -59,7 +59,7 @@
int fid, did, cof;
did = get_did(family, pstate);
- if (family == 0x17) {
+ if (family == 0x17 || family == 0x18) {
fid = pstate.fam17h_bits.fid;
cof = 200 * fid / did;
} else {
--
Gitblit v1.6.2