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

Thomas Monjalon thomas at monjalon.net
Mon Jan 14 23:45:37 CET 2019


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
> succeeded. This patch adds an fflush to ensure that the
> write succeeds, otherwise returns an error.
> 
> Fixes: e6c6dc0f96c8 ("power: add p-state driver compatibility")
> 
> Signed-off-by: David Hunt <david.hunt at intel.com>

Applied, thanks





More information about the dev mailing list