Skip to content

Commit

Permalink
Add temperature reading for AMD to sysfeatures
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatix committed Dec 4, 2024
1 parent 86f21f3 commit 1a76091
Show file tree
Hide file tree
Showing 3 changed files with 430 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/includes/sysFeatures_amd_thermal.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef SYSFEATURES_AMD_THERMAL_H
#define SYSFEATURES_AMD_THERMAL_H

#include <sysFeatures_types.h>

extern const _SysFeatureList likwid_sysft_amd_k10_cpu_thermal_feature_list;

#endif //SYSFEATURES_AMD_THERMAL_H
4 changes: 4 additions & 0 deletions src/sysFeatures_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <bitUtil.h>
#include <sysFeatures_amd_hsmp.h>
#include <sysFeatures_amd_rapl.h>
#include <sysFeatures_amd_thermal.h>
#include <sysFeatures_common.h>
#include <topology.h>
#include <registers.h>
Expand Down Expand Up @@ -282,13 +283,15 @@ static const _SysFeatureList* amd_k17_cpu_feature_inputs[] = {
&amd_k17_cpu_speculation_feature_list,
//&amd_k19_cpu_l1dflush_feature_list,
&amd_k17_cpu_hwconfig_feature_list,
&likwid_sysft_amd_k10_cpu_thermal_feature_list,
NULL,
};

static const _SysFeatureList* amd_k19_zen3_cpu_feature_inputs[] = {
&amd_k19_cpu_prefetch_feature_list,
&amd_k19_cpu_speculation_feature_list,
&amd_k17_cpu_hwconfig_feature_list,
&likwid_sysft_amd_k10_cpu_thermal_feature_list,
NULL,
};

Expand All @@ -297,6 +300,7 @@ static const _SysFeatureList* amd_k19_zen4_cpu_feature_inputs[] = {
&amd_k19_cpu_speculation_feature_list,
&amd_k19_cpu_l1dflush_feature_list,
&amd_k17_cpu_hwconfig_feature_list,
&likwid_sysft_amd_k10_cpu_thermal_feature_list,
NULL,
};

Expand Down
Loading

0 comments on commit 1a76091

Please sign in to comment.