aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2021-04-01 13:31:39 -0500
committerGitHub2021-04-01 13:31:39 -0500
commitf7f045b31abfd17d94a7ff54385f47b56c04df27 (patch)
tree1e88855583aa3e3582fe20a4fd14a623eeefd63e
parent35f675d45a9ebc22cb98ff7289a9c9f7c9535226 (diff)
parentae6e53ed359480f22745b36e459f717867a35b37 (diff)
Merge pull request #2 from b-m-f/master
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;
}