]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86/intel/uncore-freq: Display uncore current frequency
authorSrinivas Pandruvada <srinivas.pandruvada@intel.com>
Fri, 4 Feb 2022 00:03:05 +0000 (16:03 -0800)
committerHans de Goede <hdegoede@redhat.com>
Thu, 17 Feb 2022 12:20:30 +0000 (13:20 +0100)
commitfdd1ce1baf8d3b7d06c982cb75494e0daa06c3c2
tree902e71fa1a73b546b73dc1ea8b640fd61c421605
parent8e9fbcf255f7cd5116cd74070c7aacde094a9cc1
platform/x86/intel/uncore-freq: Display uncore current frequency

Add a new sysfs attribute "current_freq_khz" to display current uncore
frequency. This value is read from MSR 0x621.

Root user permission is required to read uncore current frequency.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20220204000306.2517447-4-srinivas.pandruvada@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c