power: fix governor storage to trim newlines
authorDavid Hunt <david.hunt@intel.com>
Fri, 29 Mar 2019 16:39:20 +0000 (16:39 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 1 Apr 2019 20:23:44 +0000 (22:23 +0200)
commit08a710642d1d8bed831ecf2085e041213381fc68
tree869ca87c022ddb288b31ff74335d53ad2c5ae65a
parentd6cefc11e05f0ddd87eef79f47d45fd3d01bb4bc
power: fix governor storage to trim newlines

Currently the Power Libray stores the governor name with an embedded
newline read from the scaling_governor sysfs file. This patch strips
it out.

Fixes: 445c6528b55f ("power: common interface for guest and host")
Cc: stable@dpdk.org
Signed-off-by: David Hunt <david.hunt@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_power/power_acpi_cpufreq.c
lib/librte_power/power_pstate_cpufreq.c