mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shuah <shuah@kernel.org>
To: Jan Kiszka <jan.kiszka@siemens.com>,
	Thomas Renninger <trenn@suse.com>, Shuah Khan <shuah@kernel.org>,
	"John B. Wyatt IV" <jwyatt@redhat.com>,
	John Kacur <jkacur@redhat.com>
Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
	shuah <shuah@kernel.org>
Subject: Re: [PATCH] cpupower: Add support for setting EPP via systemd service
Date: Fri, 20 Feb 2026 09:19:41 -0700	[thread overview]
Message-ID: <3cf87836-1fb7-4706-86ff-267383a8d914@kernel.org> (raw)
In-Reply-To: <aa240c08-9dc9-4e2f-a890-57ba9731fbb8@siemens.com>

On 2/14/26 04:12, Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
> 
> Extend the systemd service so that it can be used for tuning the Energy
> Performance Preference (EPP) as well.

How would users use this support? Add a few lines to help them.

> 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>   tools/power/cpupower/cpupower-service.conf | 5 +++++
>   tools/power/cpupower/cpupower.sh           | 6 ++++++
>   2 files changed, 11 insertions(+)
> 
> diff --git a/tools/power/cpupower/cpupower-service.conf b/tools/power/cpupower/cpupower-service.conf
> index 02eabe8e3614..abbb46967565 100644
> --- a/tools/power/cpupower/cpupower-service.conf
> +++ b/tools/power/cpupower/cpupower-service.conf
> @@ -30,3 +30,8 @@
>   # its policy for the relative importance of performance versus energy savings to
>   # the processor. See man CPUPOWER-SET(1) for additional details
>   #PERF_BIAS=
> +
> +# Set the Energy Performance Preference
> +# Available options can be read from
> +# /sys/devices/system/cpu/cpufreq/policy0/energy_performance_available_preferences
> +#EPP=
> diff --git a/tools/power/cpupower/cpupower.sh b/tools/power/cpupower/cpupower.sh
> index a37dd4cfdb2b..6283e8bf275d 100644
> --- a/tools/power/cpupower/cpupower.sh
> +++ b/tools/power/cpupower/cpupower.sh
> @@ -23,4 +23,10 @@ then
>       cpupower set -b "$PERF_BIAS" > /dev/null || ESTATUS=1
>   fi
>   
> +# apply Energy Performance Preference
> +if test -n "$EPP"
> +then
> +    cpupower set -e "$EPP" > /dev/null || ESTATUS=1
> +fi
> +
>   exit $ESTATUS

thanks,
-- Shuah

  reply	other threads:[~2026-02-20 16:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-14 11:12 Jan Kiszka
2026-02-20 16:19 ` Shuah [this message]
2026-02-20 18:27   ` Jan Kiszka
2026-02-20 18:52     ` Shuah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3cf87836-1fb7-4706-86ff-267383a8d914@kernel.org \
    --to=shuah@kernel.org \
    --cc=jan.kiszka@siemens.com \
    --cc=jkacur@redhat.com \
    --cc=jwyatt@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=trenn@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®