Re: [dpdk-dev] [PATCH] lib/power: fix error handling on setting governor

2019-01-14 Thread Thomas Monjalon
08/01/2019 15:59, David Hunt: > 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 > s

[dpdk-dev] [PATCH] lib/power: fix error handling on setting governor

2019-01-08 Thread David Hunt
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 e