numam-dpdk/lib/librte_power
David Hunt de394915df power: fix error handling on setting governor
In the power_set_governor_*() functions, we using fputs() on /sys
filesystem. However, we also need to call fflush() to ensure that
the write completes successfully. Otherwise the attempt to set the
power governor fails and the function returns as if it has
succeeded. This patch adds an fflush to ensure that the
write succeeds, otherwise returns an error.

Fixes: e6c6dc0f96 ("power: add p-state driver compatibility")

Signed-off-by: David Hunt <david.hunt@intel.com>
2019-01-15 02:40:40 +01:00
..
channel_commands.h lib/power: add changes for host commands/policies 2018-10-26 10:48:15 +02:00
guest_channel.c power: changed unsigned to unsigned int 2018-01-12 00:37:07 +01:00
guest_channel.h power: changed unsigned to unsigned int 2018-01-12 00:37:07 +01:00
Makefile power: add p-state driver compatibility 2018-12-21 01:33:59 +01:00
meson.build power: add p-state driver compatibility 2018-12-21 01:33:59 +01:00
power_acpi_cpufreq.c power: fix error handling on setting governor 2019-01-15 02:40:40 +01:00
power_acpi_cpufreq.h power: add get capabilities API 2018-07-12 19:15:14 +02:00
power_common.h power: clean common header 2018-01-12 00:37:07 +01:00
power_kvm_vm.c power: add get capabilities API 2018-07-12 19:15:14 +02:00
power_kvm_vm.h power: add get capabilities API 2018-07-12 19:15:14 +02:00
power_pstate_cpufreq.c power: fix error handling on setting governor 2019-01-15 02:40:40 +01:00
power_pstate_cpufreq.h power: add p-state driver compatibility 2018-12-21 01:33:59 +01:00
rte_power_empty_poll.c power: fix traffic aware build 2018-10-26 14:51:36 +02:00
rte_power_empty_poll.h power: add traffic pattern aware power control 2018-10-26 01:55:07 +02:00
rte_power_version.map fix indentation in symbol maps 2018-11-26 20:16:46 +01:00
rte_power.c power: add p-state driver compatibility 2018-12-21 01:33:59 +01:00
rte_power.h power: add p-state driver compatibility 2018-12-21 01:33:59 +01:00