Minor fixes for tools/cpupower
cover Minor fixes for tools/cpupower
From: Mattia Dongili <[email protected]>
Hi Thomas,
here's a handful of patches that I'm applying for the Debian packaging of cpupower.
Nothing major like you'll see below, let me know if you want me to change anything.
Thanks!
Mattia Dongili (3):
warning: comparison of constant ‘-1’ with boolean expression is always
false
Fix cpupower manpages "NAME" section
Honour user's LDFLAGS
tools/power/cpupower/bench/Makefile | 2 +- tools/power/cpupower/man/cpupower-frequency-info.1 | 2 +- tools/power/cpupower/man/cpupower-frequency-set.1 | 2 +- tools/power/cpupower/man/cpupower-idle-info.1 | 2 +- tools/power/cpupower/man/cpupower-idle-set.1 | 2 +- tools/power/cpupower/utils/helpers/topology.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
2.7.0
PATCH 2/3 Fix cpupower manpages "NAME" section
From: Mattia Dongili <[email protected]>
The token before "-" should be the program name, no spaces allowed. See man(7) and lexgrog(1).
--- tools/power/cpupower/man/cpupower-frequency-info.1 | 2 +- tools/power/cpupower/man/cpupower-frequency-set.1 | 2 +- tools/power/cpupower/man/cpupower-idle-info.1 | 2 +- tools/power/cpupower/man/cpupower-idle-set.1 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
tools/power/cpupower/man/cpupower-frequency-info.1 +1 -1
@@ -1,7 +1,7 @@ .TH "CPUPOWER\-FREQUENCY\-INFO" "1" "0.1" "" "cpupower Manual" .SH "NAME" .LP -cpupower frequency\-info \- Utility to retrieve cpufreq kernel information +cpupower\-frequency\-info \- Utility to retrieve cpufreq kernel information .SH "SYNTAX" .LP cpupower [ \-c cpulist ] frequency\-info [\fIoptions\fP]
tools/power/cpupower/man/cpupower-frequency-set.1 +1 -1
@@ -1,7 +1,7 @@ .TH "CPUPOWER\-FREQUENCY\-SET" "1" "0.1" "" "cpupower Manual" .SH "NAME" .LP -cpupower frequency\-set \- A small tool which allows to modify cpufreq settings. +cpupower\-frequency\-set \- A small tool which allows to modify cpufreq settings. .SH "SYNTAX" .LP cpupower [ \-c cpu ] frequency\-set [\fIoptions\fP]
tools/power/cpupower/man/cpupower-idle-info.1 +1 -1
@@ -1,7 +1,7 @@ .TH "CPUPOWER-IDLE-INFO" "1" "0.1" "" "cpupower Manual" .SH "NAME" .LP -cpupower idle\-info \- Utility to retrieve cpu idle kernel information +cpupower\-idle\-info \- Utility to retrieve cpu idle kernel information .SH "SYNTAX" .LP cpupower [ \-c cpulist ] idle\-info [\fIoptions\fP]
tools/power/cpupower/man/cpupower-idle-set.1 +1 -1
@@ -1,7 +1,7 @@ .TH "CPUPOWER-IDLE-SET" "1" "0.1" "" "cpupower Manual" .SH "NAME" .LP -cpupower idle\-set \- Utility to set cpu idle state specific kernel options +cpupower\-idle\-set \- Utility to set cpu idle state specific kernel options .SH "SYNTAX" .LP cpupower [ \-c cpulist ] idle\-info [\fIoptions\fP]
Signature · 1 line
2.7.0
PATCH 1/3 warning: comparison of constant ‘-1’ with boolean expression is always false
In reply to [email protected]From: Mattia Dongili <[email protected]>
--- tools/power/cpupower/utils/helpers/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/power/cpupower/utils/helpers/topology.c +1 -1
@@ -106,7 +106,7 @@ int get_cpu_topology(struct cpupower_topology *cpu_top) cpu_top->pkgs++; } } -if (!cpu_top->core_info[0 ].pkg ==-1 ) +if (cpu_top->core_info[0 ].pkg !=-1 ) cpu_top->pkgs++;/* Intel's cores count is not consecutively numbered, there may
Signature · 1 line
2.7.0
PATCH 3/3 Honour user's LDFLAGS
In reply to [email protected]From: Mattia Dongili <[email protected]>
--- tools/power/cpupower/bench/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/power/cpupower/bench/Makefile +1 -1
@@ -16,7 +16,7 @@ $(OUTPUT)%.o : %.c $(OUTPUT)cpufreq-bench: $(OBJS) $(ECHO) " CC " $@ - $(QUIET) $(CC) -o $@ $(CFLAGS) $(OBJS) $(LIBS) + $(QUIET) $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) all: $(OUTPUT)cpufreq-bench
Signature · 1 line
2.7.0
Quoted 8 lines · On Wednesday, March 16, 2016 07:13:05 AM [email protected] wrote:
From: Mattia Dongili <[email protected]>
Hi Thomas,
here's a handful of patches that I'm applying for the Debian packaging of cpupower.
Nothing major like you'll see below, let me know if you want me to change anything.
Thanks!
I have a bigger change pending.
I'll already add your patches there and will repost alltogether. This will still take some days, but as there is no urgent fix, that should be fine.
Thanks again,
Thomas