diff options
author | 2023-10-04 11:19:15 -0700 | |
---|---|---|
committer | 2023-10-11 11:20:16 +0200 | |
commit | 4d73c6772ab771cbbe7e46a73e7c78ba490350fa (patch) | |
tree | d941fd7590bf0f97062ac9491c5f01fb22f9ffe8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'platform-drivers-x86-mellanox-init-v6.6' into fixes (diff) | |
download | wireguard-linux-4d73c6772ab771cbbe7e46a73e7c78ba490350fa.tar.xz wireguard-linux-4d73c6772ab771cbbe7e46a73e7c78ba490350fa.zip |
platform/x86: intel-uncore-freq: Conditionally create attribute for read frequency
When the current uncore frequency can't be read, don't create attribute
"current_freq_khz" as any read will fail later. Some user space
applications like turbostat fail to continue with the failure. So, check
error during attribute creation.
Fixes: 414eef27283a ("platform/x86/intel/uncore-freq: Display uncore current frequency")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231004181915.1887913-1-srinivas.pandruvada@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions