Re: [dpdk-dev] [PATCH 2/3] power: switching to unbuffered access for /sys files

2017-12-01 Thread Radoslaw Biernacki
Hi David, Sorry for log delay. I will make V3 with your suggestions. Thanks. On 23 November 2017 at 15:42, Hunt, David wrote: > Hi Radoslaw, > > > > On 11/11/2017 6:55 PM, Radoslaw Biernacki wrote: > >> This patch fixes the bug caused by improper use of buffered stdio file >> access for switchi

Re: [dpdk-dev] [PATCH 2/3] power: switching to unbuffered access for /sys files

2017-11-23 Thread Hunt, David
Hi Radoslaw, On 11/11/2017 6:55 PM, Radoslaw Biernacki wrote: This patch fixes the bug caused by improper use of buffered stdio file access for switching the CPU frequency and governor. When using buffered stdio, each fwrite() must use fflush() and the return code must be verified. Also fseek()

[dpdk-dev] [PATCH 2/3] power: switching to unbuffered access for /sys files

2017-11-11 Thread Radoslaw Biernacki
This patch fixes the bug caused by improper use of buffered stdio file access for switching the CPU frequency and governor. When using buffered stdio, each fwrite() must use fflush() and the return code must be verified. Also fseek() is needed. Therefore it is better to use unbuffered mode or use