aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorYazen Ghannam <[email protected]>2024-06-06 11:12:58 -0500
committerBorislav Petkov (AMD) <[email protected]>2024-06-12 11:39:29 +0200
commitcc66126fd317a70d8612a8356ad512a1539abd75 (patch)
tree9c0da58d75985928ec038b34a0a18676e8f900fb /tools/perf/scripts/python/export-to-sqlite.py
parentdc5243921be1b6a0b4259dbcec3dc95016ad8427 (diff)
hwmon: (k10temp) Define a helper function to read CCD temperature
The CCD temperature register is read in two places. These reads are done using an AMD SMN access, and a number of parameters are needed for the operation. Move the SMN access and parameter gathering into a helper function in order to simplify the code flow. This also has a benefit of centralizing the hardware register access in a single place in case fixes or special decoding is required. Signed-off-by: Yazen Ghannam <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Acked-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions