numam-dpdk/lib/librte_power
Anatoly Burakov 190f38773a power: do not skip saving original P-state governor
Currently, when we set the pstate governor to "performance", we check if
it is already set to this value, and if it is, we skip setting it.

However, we never save this value anywhere, so that next time we come
back and request the governor to be set to its original value, the
original value is empty.

Fix it by saving the original pstate governor first. While we're at it,
replace `strlcpy` with `rte_strscpy`.

Fixes: e6c6dc0f96 ("power: add p-state driver compatibility")
Cc: stable@dpdk.org

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
2021-04-06 10:36:49 +02:00
..
guest_channel.c power: clean up includes 2021-01-29 11:25:40 +01:00
guest_channel.h power: clean up includes 2021-01-29 11:25:40 +01:00
meson.build power: add ethdev power management 2021-01-29 15:29:48 +01:00
power_acpi_cpufreq.c power: use C11 atomics for power state 2020-09-25 15:42:29 +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: clean up includes 2021-01-29 11:25:40 +01:00
power_kvm_vm.h power: add environment capability probing 2020-07-11 13:31:16 +02:00
power_pstate_cpufreq.c power: do not skip saving original P-state governor 2021-04-06 10:36:49 +02:00
power_pstate_cpufreq.h power: add environment capability probing 2020-07-11 13:31:16 +02:00
rte_power_empty_poll.c eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
rte_power_empty_poll.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_power_guest_channel.h power: remove duplicated symbols from map file 2021-03-02 13:43:38 +01:00
rte_power_pmd_mgmt.c power: add ethdev power management 2021-01-29 15:29:48 +01:00
rte_power_pmd_mgmt.h power: add ethdev power management 2021-01-29 15:29:48 +01:00
rte_power.c power: add environment capability probing 2020-07-11 13:31:16 +02:00
rte_power.h power: clean up includes 2021-01-29 11:25:40 +01:00
version.map power: remove duplicated symbols from map file 2021-03-02 13:43:38 +01:00