OSDN Git Service

cpupower: Restore format of frequency-info limit
authorStafford Horne <shorne@gmail.com>
Wed, 11 Jan 2017 15:16:04 +0000 (00:16 +0900)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 19 Jan 2017 17:30:28 +0000 (10:30 -0700)
commit4da39ceb269cee9f96815a54f97931a7e59f9e7f
tree327d936c899ed5cd7488f84c5358419364399ee9
parent99c21f6d004d07667d7345e56e44a5b805e1dfa9
cpupower: Restore format of frequency-info limit

The intel_pstate kselftest expects that the output of
`cpupower frequency-info -l | tail -1 | awk ' { print $1 } '`
to get frequency limits.  This does not work after the following two
changes.

 - 562e5f1a3: rework the "cpupower frequency-info" command
   (Jacob Tanenbaum) removed parsable limit output
 - ce512b840: Do not analyse offlined cpus
   (Thomas Renninger) added newline to break limit parsing more

This change preserves human readable output if wanted as well as
parsable output for scripts/tests.

Cc: Thomas Renninger <trenn@suse.com>
Cc: "Shreyas B. Prabhu" <shreyas@linux.vnet.ibm.com>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/power/cpupower/utils/cpufreq-info.c