aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorb-m-f2021-02-25 20:59:48 +0100
committerb-m-f2021-02-25 21:02:09 +0100
commitae6e53ed359480f22745b36e459f717867a35b37 (patch)
treedce19478314c45fbbf38bc4d32c88e6983f2882a
parentfa17e94b30611513c7b863422a1215fcea74f369 (diff)
Adds support for Ryzen 5000 (Zen3)
-rw-r--r--src/zenmonitor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zenmonitor.c b/src/zenmonitor.c
index d02c510..3a64524 100644
--- a/src/zenmonitor.c
+++ b/src/zenmonitor.c
@@ -10,6 +10,7 @@
#define AMD_STRING "AuthenticAMD"
#define ZEN_FAMILY 0x17
+#define ZEN3_FAMILY 0x19
// AMD PPR = https://www.amd.com/system/files/TechDocs/54945_PPR_Family_17h_Models_00h-0Fh.pdf
@@ -31,7 +32,7 @@ gboolean check_zen() {
__get_cpuid(1, &eax, &ebx, &ecx, &edx);
ext_family = ((eax >> 8) & 0xF) + ((eax >> 20) & 0xFF);
- if (ext_family != ZEN_FAMILY){
+ if (ext_family != ZEN_FAMILY && ext_family != ZEN3_FAMILY){
return FALSE;
}