Re: [GIT PULL] cpupower second update for Linux 6.12-rc1

From: Rafael J. Wysocki
Date: Tue Sep 10 2024 - 14:31:56 EST


Hi Shuah,

On Tue, Sep 10, 2024 at 7:44 PM Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx> wrote:
>
> Hi Rafael,
>
> Please pull the following cpupower second update for Linux 6.12-rc1.
>
> This cpupower second update for Linux 6.12-rc1 consists of a fix
> and a new feature.
>
> -- adds missing powercap_set_enabled() stub function
> -- adds SWIG bindings files for libcpupower
>
> SWIG is a tool packaged in Fedora and other distros that can generate
> bindings from C and C++ code for several languages including Python,
> Perl, and Go.
>
> These bindings allows users to easily write scripts that use and extend
> libcpupower's functionality. Currently, only Python is provided in the
> makefile, but additional languages may be added if there is demand.
>
> Note that while SWIG itself is GPL v3+ licensed; the resulting output,
> the bindings code, is permissively licensed + the license of the .o
> files. Please see the following for more details.
>
> - https://swig.org/legal.html.
> - https://lore.kernel.org/linux-pm/Zqv9BOjxLAgyNP5B@hatbackup
>
> diff is attached.
>
> thanks,
> -- Shuah
>
> ----------------------------------------------------------------
> The following changes since commit 76fb981ad6774b82f06703c896b492c8659b543b:
>
> tools/cpupower: display residency value in idle-info (2024-08-09 10:32:33 -0600)
>
> are available in the Git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux tags/linux-cpupower-6.12-rc1-2
>
> for you to fetch changes up to 80e67f1802d0fc21543216557a68320c71d7dbe1:
>
> pm:cpupower: Add error warning when SWIG is not installed (2024-09-06 10:58:35 -0600)
>
> ----------------------------------------------------------------
> linux-cpupower-6.12-rc1-2
>
> This cpupower second update for Linux 6.12-rc1 consists of a fix
> and a new feature.
>
> -- adds missing powercap_set_enabled() stub function
> -- adds SWIG bindings files for libcpupower
>
> SWIG is a tool packaged in Fedora and other distros that can generate
> bindings from C and C++ code for several languages including Python,
> Perl, and Go.
>
> These bindings allows users to easily write scripts that use and extend
> libcpupower's functionality. Currently, only Python is provided in the
> makefile, but additional languages may be added if there is demand.
>
> Note that while SWIG itself is GPL v3+ licensed; the resulting output,
> the bindings code, is permissively licensed + the license of the .o
> files. Please see the following for more details.
>
> - https://swig.org/legal.html.
> - https://lore.kernel.org/linux-pm/Zqv9BOjxLAgyNP5B@hatbackup
>
> ----------------------------------------------------------------
> John B. Wyatt IV (5):
> pm:cpupower: Add missing powercap_set_enabled() stub function
> pm:cpupower: Add SWIG bindings files for libcpupower
> pm:cpupower: Include test_raw_pylibcpupower.py
> MAINTAINERS: Add Maintainers for SWIG Python bindings
> pm:cpupower: Add error warning when SWIG is not installed
>
> MAINTAINERS | 3 +
> tools/power/cpupower/bindings/python/.gitignore | 8 +
> tools/power/cpupower/bindings/python/Makefile | 33 +++
> tools/power/cpupower/bindings/python/README | 59 +++++
> .../cpupower/bindings/python/raw_pylibcpupower.i | 247 +++++++++++++++++++++
> .../bindings/python/test_raw_pylibcpupower.py | 42 ++++
> tools/power/cpupower/lib/powercap.c | 8 +
> 7 files changed, 400 insertions(+)
> create mode 100644 tools/power/cpupower/bindings/python/.gitignore
> create mode 100644 tools/power/cpupower/bindings/python/Makefile
> create mode 100644 tools/power/cpupower/bindings/python/README
> create mode 100644 tools/power/cpupower/bindings/python/raw_pylibcpupower.i
> create mode 100755 tools/power/cpupower/bindings/python/test_raw_pylibcpupower.py
> ----------------------------------------------------------------

Pulled and added to the linux-next branch in linux-pm.git, thanks!