Skip to content

Commit 47f69d1

Browse files
Shinji Nomotogregkh
authored andcommitted
cpupower: Fix a bug where the -t option of the set subcommand was not working.
[ Upstream commit b3eaf14 ] 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: Sasha Levin <sashal@kernel.org>
1 parent c471062 commit 47f69d1

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)