]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpupower: Allow control of boost feature on non-x86 based systems with boost support.
authorShinji Nomoto <fj5851bi@fujitsu.com>
Thu, 22 May 2025 06:10:59 +0000 (15:10 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 15 Aug 2025 16:49:14 +0000 (10:49 -0600)
commit357d1fc38aad2cf4ea6626138cbf68299d20170c
tree7d76d4ea9ad13db92ff392ffb2e99161d9a48b13
parentb3eaf14f4c63fd6abc7b68c6d7a07c5680a6d8e5
cpupower: Allow control of boost feature on non-x86 based systems with boost support.

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)

Link: https://lore.kernel.org/r/20250522061122.2149188-3-fj5851bi@fujitsu.com
Signed-off-by: Shinji Nomoto <fj5851bi@fujitsu.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/man/cpupower-set.1
tools/power/cpupower/utils/cpufreq-info.c
tools/power/cpupower/utils/cpupower-set.c
tools/power/cpupower/utils/helpers/helpers.h
tools/power/cpupower/utils/helpers/misc.c