Skip to content

Commit 2acabc8

Browse files
committed
Merge tag 'linux-cpupower-7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux
Pull cpupower utility updates for 7.1-rc1 from Shuah Khan: "- Fixes errors in cpupower-frequency-info short option names to its manpage. - Fixes cpupower-idle-info perf option name to its manpage. - Adds boost and epp options to cpupower-frequency-info to its manpage. - Adds description for perf-bias option to cpupower-info to its manpage. - Removes unnecessary extern declarations from getopt.h in arguments parsing functions in cpufreq-set, cpuidle-info, cpuidle-set, cpupower-info, and cpupower-set utilities. These functions are defined getopt.h file." * tag 'linux-cpupower-7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux: cpupower: remove extern declarations in cmd functions cpupower-info.1: describe the --perf-bias option cpupower-frequency-info.1: document --boost and --epp options cpupower-frequency-info.1: use the proper name of the --perf option cpupower-idle-info.1: fix short option names
2 parents 591cd65 + 2fd3b83 commit 2acabc8

9 files changed

Lines changed: 17 additions & 16 deletions

File tree

tools/power/cpupower/man/cpupower-frequency-info.1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ Gets the currently used cpufreq policy.
3232
\fB\-g\fR \fB\-\-governors\fR
3333
Determines available cpufreq governors.
3434
.TP
35+
\fB\-b\fR \fB\-\-boost\fR
36+
Gets the current boost state support.
37+
.TP
38+
\fB\-z\fR \fB\-\-epp\fR
39+
Gets the current EPP (energy performance preference).
40+
.TP
3541
\fB\-r\fR \fB\-\-related\-cpus\fR
3642
Determines which CPUs run at the same hardware frequency.
3743
.TP
@@ -53,7 +59,7 @@ human\-readable output for the \-f, \-w, \-s and \-y parameters.
5359
\fB\-n\fR \fB\-\-no-rounding\fR
5460
Output frequencies and latencies without rounding off values.
5561
.TP
56-
\fB\-c\fR \fB\-\-perf\fR
62+
\fB\-c\fR \fB\-\-performance\fR
5763
Get performances and frequencies capabilities of CPPC, by reading it from hardware (only available on the hardware with CPPC).
5864
.TP
5965
.SH "REMARKS"

tools/power/cpupower/man/cpupower-idle-info.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ A tool which prints out per cpu idle information helpful to developers and inter
1111
.SH "OPTIONS"
1212
.LP
1313
.TP
14-
\fB\-f\fR \fB\-\-silent\fR
14+
\fB\-s\fR \fB\-\-silent\fR
1515
Only print a summary of all available C-states in the system.
1616
.TP
17-
\fB\-e\fR \fB\-\-proc\fR
17+
\fB\-o\fR \fB\-\-proc\fR
1818
deprecated.
1919
Prints out idle information in old /proc/acpi/processor/*/power format. This
2020
interface has been removed from the kernel for quite some time, do not let

tools/power/cpupower/man/cpupower-info.1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
cpupower\-info \- Shows processor power related kernel or hardware configurations
44
.SH SYNOPSIS
55
.ft B
6-
.B cpupower info [ \-b ]
6+
.B cpupower info [\fIoptions\fP]
77

88
.SH DESCRIPTION
99
\fBcpupower info \fP shows kernel configurations or processor hardware
@@ -13,6 +13,13 @@ Some options are platform wide, some affect single cores. By default values
1313
of core zero are displayed only. cpupower --cpu all cpuinfo will show the
1414
settings of all cores, see cpupower(1) how to choose specific cores.
1515

16+
.SH "OPTIONS"
17+
.LP
18+
.TP
19+
\fB\-b\fR \fB\-\-perf-bias\fR
20+
Gets the current performance bias value.
21+
.TP
22+
1623
.SH "SEE ALSO"
1724
Options are described in detail in:
1825

tools/power/cpupower/utils/cpufreq-info.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,6 @@ static struct option info_opts[] = {
542542

543543
int cmd_freq_info(int argc, char **argv)
544544
{
545-
extern char *optarg;
546-
extern int optind, opterr, optopt;
547545
int ret = 0, cont = 1;
548546
unsigned int cpu = 0;
549547
unsigned int human = 0;

tools/power/cpupower/utils/cpufreq-set.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,6 @@ static int do_one_cpu(unsigned int cpu, struct cpufreq_policy *new_pol,
195195

196196
int cmd_freq_set(int argc, char **argv)
197197
{
198-
extern char *optarg;
199-
extern int optind, opterr, optopt;
200198
int ret = 0, cont = 1;
201199
int double_parm = 0, related = 0, policychange = 0;
202200
unsigned long freq = 0;

tools/power/cpupower/utils/cpuidle-info.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ static inline void cpuidle_exit(int fail)
139139

140140
int cmd_idle_info(int argc, char **argv)
141141
{
142-
extern char *optarg;
143-
extern int optind, opterr, optopt;
144142
int ret = 0, cont = 1, output_param = 0, verbose = 1;
145143
unsigned int cpu = 0;
146144

tools/power/cpupower/utils/cpuidle-set.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ static struct option info_opts[] = {
2424

2525
int cmd_idle_set(int argc, char **argv)
2626
{
27-
extern char *optarg;
28-
extern int optind, opterr, optopt;
2927
int ret = 0, cont = 1, param = 0, disabled;
3028
unsigned long long latency = 0, state_latency;
3129
unsigned int cpu = 0, idlestate = 0, idlestates = 0;

tools/power/cpupower/utils/cpupower-info.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ static void print_wrong_arg_exit(void)
2828

2929
int cmd_info(int argc, char **argv)
3030
{
31-
extern char *optarg;
32-
extern int optind, opterr, optopt;
3331
unsigned int cpu;
3432
struct utsname uts;
3533

tools/power/cpupower/utils/cpupower-set.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ static void print_wrong_arg_exit(void)
3333

3434
int cmd_set(int argc, char **argv)
3535
{
36-
extern char *optarg;
37-
extern int optind, opterr, optopt;
3836
unsigned int cpu;
3937
struct utsname uts;
4038

0 commit comments

Comments
 (0)