diff options
author | Jacob Tanenbaum <jtanenba@redhat.com> | 2015-12-01 16:14:16 (GMT) |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-12-03 01:30:30 (GMT) |
commit | 562e5f1a352977f45d0d0ed3279b556d3e41e1ba (patch) | |
tree | 7470d0a4682165c07afc048bd34659a61fa07725 /tools/arch | |
parent | ce512b84045459f4a6c119a109c950c6bc4a6f3a (diff) | |
download | linux-562e5f1a352977f45d0d0ed3279b556d3e41e1ba.tar.xz |
cpupower: rework the "cpupower frequency-info" command
this patch makes two changes to the way that "cpupower
frequancy-info" operates
1. make it so that querying individual values always returns a
message to the user
currently cpupower frequency info doesn't return anything to the user when
querying an individual value cannot be returned
[root@amd-dinar-09 cpupower]# cpupower -c 4 frequency-info -d
analyzing CPU 4:
[root@amd-dinar-09 cpupower]#
I added messages so that each query prints a message to the terminal
[root@amd-dinar-09 cpupower]# ./cpupower -c 4 frequency-info -d
analyzing CPU 4:
no or unknown cpufreq driver is active on this CPU
[root@amd-dinar-09 cpupower]#
(this is just one example)
2. change debug_output_one() to use the functions already provided
by cpufreq-info.c to query individual values of interest.
Signed-off-by: Jacob Tanenbaum <jtanenba@redhat.com>
Signed-off-by: Thomas Renninger <trenn@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/arch')
0 files changed, 0 insertions, 0 deletions