summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/msi-ec.c
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2023-10-04 20:19:15 +0200
committerHans de Goede <hdegoede@redhat.com>2023-10-11 11:20:16 +0200
commit4d73c6772ab771cbbe7e46a73e7c78ba490350fa (patch)
treed941fd7590bf0f97062ac9491c5f01fb22f9ffe8 /drivers/platform/x86/msi-ec.c
parentMerge tag 'platform-drivers-x86-mellanox-init-v6.6' into fixes (diff)
downloadlinux-4d73c6772ab771cbbe7e46a73e7c78ba490350fa.tar.xz
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 'drivers/platform/x86/msi-ec.c')
0 files changed, 0 insertions, 0 deletions