Skip to content

Commit 82aa138

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-110832 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: Steve Best <sbest@redhat.com>
1 parent 71442ba commit 82aa138

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
@@ -63,8 +63,8 @@ int cmd_set(int argc, char **argv)
6363

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

0 commit comments

Comments
 (0)