linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] cpupower: Allow control of boost feature on non-x86 based systems with boost support.
@ 2025-05-22  6:10 Shinji Nomoto
  2025-05-22  6:10 ` [PATCH 1/2] cpupower: Fix a bug where the -t option of the set subcommand was not working Shinji Nomoto
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Shinji Nomoto @ 2025-05-22  6:10 UTC (permalink / raw)
  To: Thomas Renninger, Shuah Khan, John B. Wyatt IV, John Kacur,
	Shinji Nomoto, linux-pm, linux-kernel

The cpufreq subsystem has a generic sysfs interface for controlling boost
(/sys/devices/system/cpu/cpufreq/boost).
The sysfs interface can be used to enable boost control from the cpupower
command on non-x86 platforms as well. So, allow boost controlling on
non-x86 system if boost sysfs file exists.

The set subcommand enables/disables the boost feature using the following
syntax:
  cpupower set --boost 1
  cpupower set --boost 0

The --boost option is an alias for --turbo-boost. We provided the neutral
option name because the name "turbo boost" is specific to Intel technology.

The frequency-info subcommand displays the enabled/disabled state of
the boost feature as follows:
  boost state support:
    Active: yes (or no)

Additionally, there was an existing bug in the option handling,
which I fixed in the first commit.  The fix is independent of the added
functionality.

Shinji Nomoto (2):
  cpupower: Fix a bug where the -t option of the set subcommand was not
    working.
  cpupower: Allow control of boost feature on non-x86 based systems with
    boost support.

 tools/power/cpupower/man/cpupower-set.1      |  7 +-
 tools/power/cpupower/utils/cpufreq-info.c    | 16 ++++-
 tools/power/cpupower/utils/cpupower-set.c    |  5 +-
 tools/power/cpupower/utils/helpers/helpers.h | 14 ++--
 tools/power/cpupower/utils/helpers/misc.c    | 76 ++++++++++++++------
 5 files changed, 83 insertions(+), 35 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-07-24 18:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-22  6:10 [PATCH 0/2] cpupower: Allow control of boost feature on non-x86 based systems with boost support Shinji Nomoto
2025-05-22  6:10 ` [PATCH 1/2] cpupower: Fix a bug where the -t option of the set subcommand was not working Shinji Nomoto
2025-05-22  6:10 ` [PATCH 2/2] cpupower: Allow control of boost feature on non-x86 based systems with boost support Shinji Nomoto
2025-05-29 11:48 ` [PATCH 0/2] " John B. Wyatt IV
2025-06-02 22:37   ` Shuah Khan
2025-06-03  7:16   ` Shinji Nomoto (Fujitsu)
2025-06-18 21:54     ` Shuah Khan
2025-06-20 17:26       ` John B. Wyatt IV
2025-07-22  7:30         ` Shinji Nomoto (Fujitsu)
2025-07-22 17:59           ` John B. Wyatt IV
2025-07-24 18:21             ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).