diff mbox series

[1/2] cpupower: Fix a bug where the -t option of the set subcommand was not working.

Message ID 20250522061122.2149188-2-fj5851bi@fujitsu.com
State New
Headers show
Series [1/2] cpupower: Fix a bug where the -t option of the set subcommand was not working. | expand

Commit Message

Shinji Nomoto May 22, 2025, 6:10 a.m. UTC
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.

Signed-off-by: Shinji Nomoto <fj5851bi@fujitsu.com>
---
 tools/power/cpupower/utils/cpupower-set.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tools/power/cpupower/utils/cpupower-set.c b/tools/power/cpupower/utils/cpupower-set.c
index 0677b58374ab..59ace394cf3e 100644
--- a/tools/power/cpupower/utils/cpupower-set.c
+++ b/tools/power/cpupower/utils/cpupower-set.c
@@ -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)