Re: [dpdk-dev] [21.08 PATCH v4 2/2] power: refactor pstate and acpi code

2021-05-07 Thread Burakov, Anatoly
On 07-May-21 3:13 AM, Richael Zhuang wrote: @@ -262,18 +189,16 @@ static int power_init_for_setting_freq(struct acpi_power_info *pi) { FILE *f; - char fullpath[PATH_MAX]; char buf[BUFSIZ]; uint32_t i, freq; - char *s; + int ret; - snprintf(fullp

Re: [dpdk-dev] [21.08 PATCH v4 2/2] power: refactor pstate and acpi code

2021-05-06 Thread Richael Zhuang
> -Original Message- > From: Anatoly Burakov > Sent: Friday, April 23, 2021 7:03 PM > To: dev@dpdk.org > Cc: step...@networkplumber.org; Richael Zhuang > ; reshma.pat...@intel.com; > david.h...@intel.com > Subject: [21.08 PATCH v4 2/2] power: refactor pstate and acpi code > > Currently

[dpdk-dev] [21.08 PATCH v4 2/2] power: refactor pstate and acpi code

2021-04-23 Thread Anatoly Burakov
Currently, ACPI and PSTATE modes have lots of code duplication, confusing logic, and a bunch of other issues that can, and have, led to various bugs and resource leaks. This commit factors out the common parts of sysfs reading/writing for ACPI and PSTATE drivers. Signed-off-by: Anatoly Burakov -