aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShinji Nomoto <[email protected]>2025-05-22 06:10:58 +0000
committerShuah Khan <[email protected]>2025-08-15 16:49:13 +0000
commitb3eaf14f4c63fd6abc7b68c6d7a07c5680a6d8e5 (patch)
tree9f464f64d656748bdb836fb8c951b9dc00042a2e
parentLinux 6.17-rc1 (diff)
downloadkernel-b3eaf14f4c63fd6abc7b68c6d7a07c5680a6d8e5.tar.gz
kernel-b3eaf14f4c63fd6abc7b68c6d7a07c5680a6d8e5.zip
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/[email protected] Signed-off-by: Shinji Nomoto <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
-rw-r--r--tools/power/cpupower/utils/cpupower-set.c4
1 files changed, 2 insertions, 2 deletions
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)