numam-dpdk/lib/librte_power
Anatoly Burakov 8b7b02f945 power: fix environment detection
Anything coming from sysfs has a newline at the end. Cut it off before
comparing the strings.

Fixes: 20ab67608a ("power: add environment capability probing")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
Tested-by: Lihong Ma <lihongx.ma@intel.com>
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
2020-07-22 01:35:39 +02:00
..
channel_commands.h power: add packet type for capabilities 2019-10-27 21:12:04 +01:00
guest_channel.c power: add environment capability probing 2020-07-11 13:31:16 +02:00
guest_channel.h power: add environment capability probing 2020-07-11 13:31:16 +02:00
Makefile power: add environment capability probing 2020-07-11 13:31:16 +02:00
meson.build power: add environment capability probing 2020-07-11 13:31:16 +02:00
power_acpi_cpufreq.c power: add environment capability probing 2020-07-11 13:31:16 +02:00
power_acpi_cpufreq.h power: add environment capability probing 2020-07-11 13:31:16 +02:00
power_common.c power: fix environment detection 2020-07-22 01:35:39 +02:00
power_common.h power: add environment capability probing 2020-07-11 13:31:16 +02:00
power_kvm_vm.c power: add environment capability probing 2020-07-11 13:31:16 +02:00
power_kvm_vm.h power: add environment capability probing 2020-07-11 13:31:16 +02:00
power_pstate_cpufreq.c power: add environment capability probing 2020-07-11 13:31:16 +02:00
power_pstate_cpufreq.h power: add environment capability probing 2020-07-11 13:31:16 +02:00
rte_power_empty_poll.c replace always-inline attributes 2020-04-16 18:16:46 +02:00
rte_power_empty_poll.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_power_version.map power: add environment capability probing 2020-07-11 13:31:16 +02:00
rte_power.c power: add environment capability probing 2020-07-11 13:31:16 +02:00
rte_power.h power: add environment capability probing 2020-07-11 13:31:16 +02:00