power: add environment capability probing
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 19 Jun 2020 10:53:54 +0000 (11:53 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 11 Jul 2020 11:31:16 +0000 (13:31 +0200)
commit20ab67608a396e152e5f7d0ebaa18f664c0508fb
tree80408c9dcad4ed643c7dbbdcf7cb1cdf97977cd4
parente0194feb322c3faa4588fb254751d97f7c742142
power: add environment capability probing

Currently, there is no way to know if the power management env is
supported without trying to initialize it. The init API also does
not distinguish between failure due to some error and failure due to
power management not being available on the platform in the first
place.

Thus, add an API that provides capability of probing support for a
specific power management API.

Suggested-by: Jerin Jacob <jerinj@marvell.com>
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
15 files changed:
lib/librte_power/Makefile
lib/librte_power/guest_channel.c
lib/librte_power/guest_channel.h
lib/librte_power/meson.build
lib/librte_power/power_acpi_cpufreq.c
lib/librte_power/power_acpi_cpufreq.h
lib/librte_power/power_common.c [new file with mode: 0644]
lib/librte_power/power_common.h
lib/librte_power/power_kvm_vm.c
lib/librte_power/power_kvm_vm.h
lib/librte_power/power_pstate_cpufreq.c
lib/librte_power/power_pstate_cpufreq.h
lib/librte_power/rte_power.c
lib/librte_power/rte_power.h
lib/librte_power/rte_power_version.map