Re: [GIT PULL] cpupower update for Linux 6.4-rc3

From: Rafael J. Wysocki
Date: Fri May 19 2023 - 10:28:47 EST


On Wed, May 17, 2023 at 8:26 PM Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx> wrote:
>
> Hi Rafael,
>
> Please pull the following cpupower update for Linux 6.4-rc3 or for
> a later rc.
>
> This cpupower fixes update for Linux 6.4-rc3 consists of:
>
> - a resource leak fix
> - fix drift in C0 percentage calculation due to System-wide TSC read.
> To lower this drift read TSC per CPU and also just after mperf read.
> This technique improves C0 percentage calculation in Mperf monitor
>
> diff is attached.
>
> thanks,
> -- Shuah
>
> ----------------------------------------------------------------
> The following changes since commit ac9a78681b921877518763ba0e89202254349d1b:
>
> Linux 6.4-rc1 (2023-05-07 13:34:35 -0700)
>
> are available in the Git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux tags/linux-cpupower-6.4-rc3
>
> for you to fetch changes up to c2adb1877b76fc81ae041e1db1a6ed2078c6746b:
>
> cpupower: Make TSC read per CPU for Mperf monitor (2023-05-08 10:46:49 -0600)
>
> ----------------------------------------------------------------
> linux-cpupower-6.4-rc3
>
> This cpupower fixes update for Linux 6.4-rc3 consists of:
>
> - a resource leak fix
> - fix drift in C0 percentage calculation due to System-wide TSC read.
> To lower this drift read TSC per CPU and also just after mperf read.
> This technique improves C0 percentage calculation in Mperf monitor
>
> ----------------------------------------------------------------
> Hao Zeng (1):
> cpupower:Fix resource leaks in sysfs_get_enabled()
>
> Wyes Karny (1):
> cpupower: Make TSC read per CPU for Mperf monitor
>
> tools/power/cpupower/lib/powercap.c | 23 +++++++++++-----
> .../cpupower/utils/idle_monitor/mperf_monitor.c | 31 ++++++++++------------
> 2 files changed, 30 insertions(+), 24 deletions(-)
>
> ----------------------------------------------------------------

Pulled, thanks!