Skip to content

Commit bbfbaa0

Browse files
committed
cpupower: Fix a bug where the -t option of the set subcommand was not working.
JIRA: https://issues.redhat.com/browse/RHEL-118182 commit b3eaf14 Author: Shinji Nomoto <fj5851bi@fujitsu.com> Date: Thu May 22 15:10:58 2025 +0900 cpupower: Fix a bug where the -t option of the set subcommand was not working. The set subcommand's -t option is documented as being available for boost configuration, but it was not actually functioning due to a bug in the option handling. Link: https://lore.kernel.org/r/20250522061122.2149188-2-fj5851bi@fujitsu.com Signed-off-by: Shinji Nomoto <fj5851bi@fujitsu.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: David Arcari <darcari@redhat.com>
1 parent 2bf3533 commit bbfbaa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/power/cpupower/utils/cpupower-set.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ int cmd_set(int argc, char **argv)
6262

6363
params.params = 0;
6464
/* parameter parsing */
65-
while ((ret = getopt_long(argc, argv, "b:e:m:",
66-
set_opts, NULL)) != -1) {
65+
while ((ret = getopt_long(argc, argv, "b:e:m:t:",
66+
set_opts, NULL)) != -1) {
6767
switch (ret) {
6868
case 'b':
6969
if (params.perf_bias)

0 commit comments

Comments
 (0)