aboutsummaryrefslogtreecommitdiffstats
path: root/tools/power/cpupower/utils/cpupower-set.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/power/cpupower/utils/cpupower-set.c')
-rw-r--r--tools/power/cpupower/utils/cpupower-set.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/power/cpupower/utils/cpupower-set.c b/tools/power/cpupower/utils/cpupower-set.c
index 3f807bc7a567..bc1b391e46f0 100644
--- a/tools/power/cpupower/utils/cpupower-set.c
+++ b/tools/power/cpupower/utils/cpupower-set.c
@@ -30,10 +30,10 @@ void set_help(void)
30} 30}
31 31
32static struct option set_opts[] = { 32static struct option set_opts[] = {
33 { .name="perf-bias", .has_arg=optional_argument, .flag=NULL, .val='b'}, 33 { .name = "perf-bias", .has_arg = optional_argument, .flag = NULL, .val = 'b'},
34 { .name="sched-mc", .has_arg=optional_argument, .flag=NULL, .val='m'}, 34 { .name = "sched-mc", .has_arg = optional_argument, .flag = NULL, .val = 'm'},
35 { .name="sched-smt", .has_arg=optional_argument, .flag=NULL, .val='s'}, 35 { .name = "sched-smt", .has_arg = optional_argument, .flag = NULL, .val = 's'},
36 { .name="help", .has_arg=no_argument, .flag=NULL, .val='h'}, 36 { .name = "help", .has_arg = no_argument, .flag = NULL, .val = 'h'},
37 { }, 37 { },
38}; 38};
39 39
@@ -57,17 +57,17 @@ int cmd_set(int argc, char **argv)
57 int perf_bias:1; 57 int perf_bias:1;
58 }; 58 };
59 int params; 59 int params;
60
61 } params; 60 } params;
62 int sched_mc = 0, sched_smt = 0, perf_bias = 0; 61 int sched_mc = 0, sched_smt = 0, perf_bias = 0;
63 int ret = 0; 62 int ret = 0;
64 63
65 setlocale(LC_ALL, ""); 64 setlocale(LC_ALL, "");
66 textdomain (PACKAGE); 65 textdomain(PACKAGE);
67 66
68 params.params = 0; 67 params.params = 0;
69 /* parameter parsing */ 68 /* parameter parsing */
70 while ((ret = getopt_long(argc, argv, "m:s:b:h", set_opts, NULL)) != -1) { 69 while ((ret = getopt_long(argc, argv, "m:s:b:h",
70 set_opts, NULL)) != -1) {
71 switch (ret) { 71 switch (ret) {
72 case 'h': 72 case 'h':
73 set_help(); 73 set_help();
@@ -135,7 +135,7 @@ int cmd_set(int argc, char **argv)
135 /* loop over CPUs */ 135 /* loop over CPUs */
136 for (cpu = bitmask_first(cpus_chosen); 136 for (cpu = bitmask_first(cpus_chosen);
137 cpu <= bitmask_last(cpus_chosen); cpu++) { 137 cpu <= bitmask_last(cpus_chosen); cpu++) {
138 138
139 if (!bitmask_isbitset(cpus_chosen, cpu) || 139 if (!bitmask_isbitset(cpus_chosen, cpu) ||
140 cpufreq_cpu_exists(cpu)) 140 cpufreq_cpu_exists(cpu))
141 continue; 141 continue;