]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
cpupower: Fix a bug where the -t option of the set subcommand was not working.
authorShinji Nomoto <fj5851bi@fujitsu.com>
Thu, 22 May 2025 06:10:58 +0000 (15:10 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 15 Aug 2025 16:49:13 +0000 (10:49 -0600)
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>
tools/power/cpupower/utils/cpupower-set.c

index 0677b58374abf15c35ed0bd2cd2bc8641d10d972..59ace394cf3ef9f97d27eef2d3a66000de3bace1 100644 (file)
@@ -62,8 +62,8 @@ int cmd_set(int argc, char **argv)
 
        params.params = 0;
        /* parameter parsing */
-       while ((ret = getopt_long(argc, argv, "b:e:m:",
-                                               set_opts, NULL)) != -1) {
+       while ((ret = getopt_long(argc, argv, "b:e:m:t:",
+                                 set_opts, NULL)) != -1) {
                switch (ret) {
                case 'b':
                        if (params.perf_bias)