platform/x86: intel-uncore-freq: Conditionally create attribute for read frequency
mainline inclusion from mainline-v6.6-rc7 commit 4d73c677 category: feature bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8WOEG Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4d73c6772ab771cbbe7e46a73e7c78ba490350fa ------------------------------------- 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. Intel-SIG: commit 4d73c677 platform/x86: intel-uncore-freq: Conditionally create attribute for read frequency. Backport Intel-uncore-freq driver support on TPMI. Fixes: 414eef27 ("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> [ Yingbao Jia: amend commit log ] Signed-off-by:
Yingbao Jia <yingbao.jia@intel.com>
Loading
Please sign in to comment