diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-25 13:32:18 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-25 13:32:18 -0400 |
| commit | be5378f3baabb5667508c42c56b4281f967d6861 (patch) | |
| tree | f68709a01e8dd53f86374dba94bd5c0c2ebeac4f /tools | |
| parent | e5b1d9cc1dc7cf76147411f1a74f64b570e148e3 (diff) | |
| parent | 498ca793d90aef8ad38a852a969c257f62832738 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/cpupowerutils
* git://git.kernel.org/pub/scm/linux/kernel/git/brodo/cpupowerutils:
cpupower: use man(1) when calling "cpupower help subcommand"
cpupower: make NLS truly optional
cpupower: fix Makefile typo
cpupower: Make monitor command -c/--cpu aware
cpupower: Better detect offlined CPUs
cpupower: Do not show an empty Idle_Stats monitor if no idle driver is available
cpupower: mperf monitor - Use TSC to calculate max frequency if possible
cpupower: avoid using symlinks
Diffstat (limited to 'tools')
21 files changed, 308 insertions, 289 deletions
diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile index 94c2cf0a98b8..e8a03aceceb1 100644 --- a/tools/power/cpupower/Makefile +++ b/tools/power/cpupower/Makefile | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | # Set the following to `true' to make a unstripped, unoptimized | 25 | # Set the following to `true' to make a unstripped, unoptimized |
| 26 | # binary. Leave this set to `false' for production use. | 26 | # binary. Leave this set to `false' for production use. |
| 27 | DEBUG ?= false | 27 | DEBUG ?= true |
| 28 | 28 | ||
| 29 | # make the build silent. Set this to something else to make it noisy again. | 29 | # make the build silent. Set this to something else to make it noisy again. |
| 30 | V ?= false | 30 | V ?= false |
| @@ -35,7 +35,7 @@ NLS ?= true | |||
| 35 | 35 | ||
| 36 | # Set the following to 'true' to build/install the | 36 | # Set the following to 'true' to build/install the |
| 37 | # cpufreq-bench benchmarking tool | 37 | # cpufreq-bench benchmarking tool |
| 38 | CPUFRQ_BENCH ?= true | 38 | CPUFREQ_BENCH ?= true |
| 39 | 39 | ||
| 40 | # Prefix to the directories we're installing to | 40 | # Prefix to the directories we're installing to |
| 41 | DESTDIR ?= | 41 | DESTDIR ?= |
| @@ -137,9 +137,10 @@ CFLAGS += -pipe | |||
| 137 | ifeq ($(strip $(NLS)),true) | 137 | ifeq ($(strip $(NLS)),true) |
| 138 | INSTALL_NLS += install-gmo | 138 | INSTALL_NLS += install-gmo |
| 139 | COMPILE_NLS += create-gmo | 139 | COMPILE_NLS += create-gmo |
| 140 | CFLAGS += -DNLS | ||
| 140 | endif | 141 | endif |
| 141 | 142 | ||
| 142 | ifeq ($(strip $(CPUFRQ_BENCH)),true) | 143 | ifeq ($(strip $(CPUFREQ_BENCH)),true) |
| 143 | INSTALL_BENCH += install-bench | 144 | INSTALL_BENCH += install-bench |
| 144 | COMPILE_BENCH += compile-bench | 145 | COMPILE_BENCH += compile-bench |
| 145 | endif | 146 | endif |
diff --git a/tools/power/cpupower/debug/x86_64/Makefile b/tools/power/cpupower/debug/x86_64/Makefile index dbf13998462a..3326217dd311 100644 --- a/tools/power/cpupower/debug/x86_64/Makefile +++ b/tools/power/cpupower/debug/x86_64/Makefile | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | default: all | 1 | default: all |
| 2 | 2 | ||
| 3 | centrino-decode: centrino-decode.c | 3 | centrino-decode: ../i386/centrino-decode.c |
| 4 | $(CC) $(CFLAGS) -o centrino-decode centrino-decode.c | 4 | $(CC) $(CFLAGS) -o $@ $< |
| 5 | 5 | ||
| 6 | powernow-k8-decode: powernow-k8-decode.c | 6 | powernow-k8-decode: ../i386/powernow-k8-decode.c |
| 7 | $(CC) $(CFLAGS) -o powernow-k8-decode powernow-k8-decode.c | 7 | $(CC) $(CFLAGS) -o $@ $< |
| 8 | 8 | ||
| 9 | all: centrino-decode powernow-k8-decode | 9 | all: centrino-decode powernow-k8-decode |
| 10 | 10 | ||
diff --git a/tools/power/cpupower/debug/x86_64/centrino-decode.c b/tools/power/cpupower/debug/x86_64/centrino-decode.c deleted file mode 120000 index 26fb3f1d8fc7..000000000000 --- a/tools/power/cpupower/debug/x86_64/centrino-decode.c +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | ../i386/centrino-decode.c \ No newline at end of file | ||
diff --git a/tools/power/cpupower/debug/x86_64/powernow-k8-decode.c b/tools/power/cpupower/debug/x86_64/powernow-k8-decode.c deleted file mode 120000 index eb30c79cf9df..000000000000 --- a/tools/power/cpupower/debug/x86_64/powernow-k8-decode.c +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | ../i386/powernow-k8-decode.c \ No newline at end of file | ||
diff --git a/tools/power/cpupower/man/cpupower-frequency-info.1 b/tools/power/cpupower/man/cpupower-frequency-info.1 index 3194811d58f5..bb60a8d1e45a 100644 --- a/tools/power/cpupower/man/cpupower-frequency-info.1 +++ b/tools/power/cpupower/man/cpupower-frequency-info.1 | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | .TH "cpufreq-info" "1" "0.1" "Mattia Dongili" "" | 1 | .TH "cpupower-frequency-info" "1" "0.1" "Mattia Dongili" "" |
| 2 | .SH "NAME" | 2 | .SH "NAME" |
| 3 | .LP | 3 | .LP |
| 4 | cpufreq\-info \- Utility to retrieve cpufreq kernel information | 4 | cpupower frequency\-info \- Utility to retrieve cpufreq kernel information |
| 5 | .SH "SYNTAX" | 5 | .SH "SYNTAX" |
| 6 | .LP | 6 | .LP |
| 7 | cpufreq\-info [\fIoptions\fP] | 7 | cpupower [ \-c cpulist ] frequency\-info [\fIoptions\fP] |
| 8 | .SH "DESCRIPTION" | 8 | .SH "DESCRIPTION" |
| 9 | .LP | 9 | .LP |
| 10 | A small tool which prints out cpufreq information helpful to developers and interested users. | 10 | A small tool which prints out cpufreq information helpful to developers and interested users. |
diff --git a/tools/power/cpupower/man/cpupower-frequency-set.1 b/tools/power/cpupower/man/cpupower-frequency-set.1 index 26e3e13eee3b..685f469093ad 100644 --- a/tools/power/cpupower/man/cpupower-frequency-set.1 +++ b/tools/power/cpupower/man/cpupower-frequency-set.1 | |||
| @@ -1,13 +1,13 @@ | |||
| 1 | .TH "cpufreq-set" "1" "0.1" "Mattia Dongili" "" | 1 | .TH "cpupower-freqency-set" "1" "0.1" "Mattia Dongili" "" |
| 2 | .SH "NAME" | 2 | .SH "NAME" |
| 3 | .LP | 3 | .LP |
| 4 | cpufreq\-set \- A small tool which allows to modify cpufreq settings. | 4 | cpupower frequency\-set \- A small tool which allows to modify cpufreq settings. |
| 5 | .SH "SYNTAX" | 5 | .SH "SYNTAX" |
| 6 | .LP | 6 | .LP |
| 7 | cpufreq\-set [\fIoptions\fP] | 7 | cpupower [ \-c cpu ] frequency\-set [\fIoptions\fP] |
| 8 | .SH "DESCRIPTION" | 8 | .SH "DESCRIPTION" |
| 9 | .LP | 9 | .LP |
| 10 | cpufreq\-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. | 10 | 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. |
| 11 | .SH "OPTIONS" | 11 | .SH "OPTIONS" |
| 12 | .LP | 12 | .LP |
| 13 | .TP | 13 | .TP |
diff --git a/tools/power/cpupower/man/cpupower.1 b/tools/power/cpupower/man/cpupower.1 index 78c20feab85c..baf741d06e82 100644 --- a/tools/power/cpupower/man/cpupower.1 +++ b/tools/power/cpupower/man/cpupower.1 | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | cpupower \- Shows and sets processor power related values | 3 | cpupower \- Shows and sets processor power related values |
| 4 | .SH SYNOPSIS | 4 | .SH SYNOPSIS |
| 5 | .ft B | 5 | .ft B |
| 6 | .B cpupower [ \-c cpulist ] subcommand [ARGS] | 6 | .B cpupower [ \-c cpulist ] <command> [ARGS] |
| 7 | 7 | ||
| 8 | .B cpupower \-v|\-\-version | 8 | .B cpupower \-v|\-\-version |
| 9 | 9 | ||
| @@ -13,24 +13,24 @@ cpupower \- Shows and sets processor power related values | |||
| 13 | \fBcpupower \fP is a collection of tools to examine and tune power saving | 13 | \fBcpupower \fP is a collection of tools to examine and tune power saving |
| 14 | related features of your processor. | 14 | related features of your processor. |
| 15 | 15 | ||
| 16 | The manpages of the subcommands (cpupower\-<subcommand>(1)) provide detailed | 16 | The manpages of the commands (cpupower\-<command>(1)) provide detailed |
| 17 | descriptions of supported features. Run \fBcpupower help\fP to get an overview | 17 | descriptions of supported features. Run \fBcpupower help\fP to get an overview |
| 18 | of supported subcommands. | 18 | of supported commands. |
| 19 | 19 | ||
| 20 | .SH Options | 20 | .SH Options |
| 21 | .PP | 21 | .PP |
| 22 | \-\-help, \-h | 22 | \-\-help, \-h |
| 23 | .RS 4 | 23 | .RS 4 |
| 24 | Shows supported subcommands and general usage. | 24 | Shows supported commands and general usage. |
| 25 | .RE | 25 | .RE |
| 26 | .PP | 26 | .PP |
| 27 | \-\-cpu cpulist, \-c cpulist | 27 | \-\-cpu cpulist, \-c cpulist |
| 28 | .RS 4 | 28 | .RS 4 |
| 29 | Only show or set values for specific cores. | 29 | Only show or set values for specific cores. |
| 30 | This option is not supported by all subcommands, details can be found in the | 30 | This option is not supported by all commands, details can be found in the |
| 31 | manpages of the subcommands. | 31 | manpages of the commands. |
| 32 | 32< | ||
