numam-dpdk/lib/power
Anatoly Burakov 7f15f0fbed power: save original ACPI governor always
Currently, when we set the acpi governor to "userspace", 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: 445c6528b5 ("power: common interface for guest and host")
Cc: stable@dpdk.org

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
2021-05-05 12:29:12 +02:00
..
guest_channel.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
guest_channel.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
meson.build build: fix formatting of Meson lists 2021-05-04 15:01:47 +02:00
power_acpi_cpufreq.c power: save original ACPI governor always 2021-05-05 12:29:12 +02:00
power_acpi_cpufreq.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
power_common.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
power_common.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
power_kvm_vm.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
power_kvm_vm.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
power_pstate_cpufreq.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
power_pstate_cpufreq.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_power_empty_poll.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_power_empty_poll.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_power_guest_channel.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_power_pmd_mgmt.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_power_pmd_mgmt.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_power.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_power.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00