[PATCH v4 1/6] cpupower-frequency-set.1: trim trailing whitespace

Roberto Ricci posted 6 patches 2 weeks ago
There is a newer version of this series
[PATCH v4 1/6] cpupower-frequency-set.1: trim trailing whitespace
Posted by Roberto Ricci 2 weeks ago
Remove useless spaces at the end of some lines in cpupower-frequency-set.1.

Signed-off-by: Roberto Ricci <io@r-ricci.it>
---
 .../cpupower/man/cpupower-frequency-set.1     | 42 +++++++++----------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/tools/power/cpupower/man/cpupower-frequency-set.1 b/tools/power/cpupower/man/cpupower-frequency-set.1
index b50570221a5b..fded317c8c51 100644
--- a/tools/power/cpupower/man/cpupower-frequency-set.1
+++ b/tools/power/cpupower/man/cpupower-frequency-set.1
@@ -1,52 +1,52 @@
 .TH "CPUPOWER\-FREQUENCY\-SET" "1" "0.1" "" "cpupower Manual"
 .SH "NAME"
-.LP 
+.LP
 cpupower\-frequency\-set \- A small tool which allows to modify cpufreq settings.
 .SH "SYNTAX"
-.LP 
+.LP
 cpupower [ \-c cpu ] frequency\-set [\fIoptions\fP]
 .SH "DESCRIPTION"
-.LP 
+.LP
 cpupower frequency\-set allows you to modify cpufreq settings without having to type e.g. "/sys/devices/system/cpu/cpu0/cpufreq/scaling_set_speed" all the time.
 .SH "OPTIONS"
-.LP 
-.TP 
+.LP
+.TP
 \fB\-d\fR \fB\-\-min\fR <FREQ>
 new minimum CPU frequency the governor may select.
-.TP 
+.TP
 \fB\-u\fR \fB\-\-max\fR <FREQ>
 new maximum CPU frequency the governor may select.
-.TP 
+.TP
 \fB\-g\fR \fB\-\-governor\fR <GOV>
 new cpufreq governor.
-.TP 
+.TP
 \fB\-f\fR \fB\-\-freq\fR <FREQ>
 specific frequency to be set. Requires userspace governor to be available and loaded.
-.TP 
+.TP
 \fB\-r\fR \fB\-\-related\fR
 modify all hardware-related CPUs at the same time
-.TP 
+.TP
 .SH "REMARKS"
-.LP 
+.LP
 By default values are applied on all cores. How to modify single core
 configurations is described in the cpupower(1) manpage in the \-\-cpu option section.
-.LP 
+.LP
 The \-f FREQ, \-\-freq FREQ parameter cannot be combined with any other parameter.
-.LP 
+.LP
 FREQuencies can be passed in Hz, kHz (default), MHz, GHz, or THz by postfixing the value with the wanted unit name, without any space (frequency in kHz =^ Hz * 0.001 =^ MHz * 1000 =^ GHz * 1000000).
-.LP 
+.LP
 On Linux kernels up to 2.6.29, the \-r or \-\-related parameter is ignored.
-.SH "FILES" 
+.SH "FILES"
 .nf
-\fI/sys/devices/system/cpu/cpu*/cpufreq/\fP  
-\fI/proc/cpufreq\fP (deprecated) 
+\fI/sys/devices/system/cpu/cpu*/cpufreq/\fP
+\fI/proc/cpufreq\fP (deprecated)
 \fI/proc/sys/cpu/\fP (deprecated)
-.fi 
+.fi
 .SH "AUTHORS"
-.nf 
-Dominik Brodowski <linux@brodo.de> \- author 
+.nf
+Dominik Brodowski <linux@brodo.de> \- author
 Mattia Dongili<malattia@gmail.com> \- first autolibtoolization
 .fi
 .SH "SEE ALSO"
-.LP 
+.LP
 cpupower\-frequency\-info(1), cpupower(1)
-- 
2.53.0
Re: [PATCH v4 1/6] cpupower-frequency-set.1: trim trailing whitespace
Posted by Shuah Khan 1 week, 6 days ago
On 3/23/26 19:35, Roberto Ricci wrote:
> Remove useless spaces at the end of some lines in cpupower-frequency-set.1.

Why are the spaces useless and what happens if you don't
remove them?

> 
> Signed-off-by: Roberto Ricci <io@r-ricci.it>
> ---
>   .../cpupower/man/cpupower-frequency-set.1     | 42 +++++++++----------
>   1 file changed, 21 insertions(+), 21 deletions(-)
> 
> diff --git a/tools/power/cpupower/man/cpupower-frequency-set.1 b/tools/power/cpupower/man/cpupower-frequency-set.1
> index b50570221a5b..fded317c8c51 100644
> --- a/tools/power/cpupower/man/cpupower-frequency-set.1
> +++ b/tools/power/cpupower/man/cpupower-frequency-set.1
> @@ -1,52 +1,52 @@
>   .TH "CPUPOWER\-FREQUENCY\-SET" "1" "0.1" "" "cpupower Manual"
>   .SH "NAME"
> -.LP
> +.LP

thanks,
-- Shuah
Re: [PATCH v4 1/6] cpupower-frequency-set.1: trim trailing whitespace
Posted by Roberto Ricci 1 week, 6 days ago
On 2026-03-24 13:59 -0600, Shuah Khan wrote:
> On 3/23/26 19:35, Roberto Ricci wrote:
> > Remove useless spaces at the end of some lines in cpupower-frequency-set.1.
> 
> Why are the spaces useless and what happens if you don't
> remove them?

The trailing spaces seem to be both useless and harmless, since the
output is identical regardless of their presence. I trimmed them from
cpupower-frequency-set.1 for consistency with cpupower-frequency-info.1.
See also my reply to your question about patch 3/6 in this series.