[dpdk-dev] [dpdk-stable] [PATCH v1 1/4] test/power: fix check for cpu frequency

Thomas Monjalon thomas at monjalon.net
Tue May 11 15:27:33 CEST 2021


This patch series is stucked.
That's too often the case for the power lib/example/test patches.

29/04/2021 12:34, Pattan, Reshma:
> From: dev <dev-bounces at dpdk.org> On Behalf Of David Hunt
> > +TEST_POWER_SYSFILE_SCALING_FREQ, lcore_id) < 0) {
> 
> >  return 0;
> 
> [Reshma]:  Do we need to return -1 here and in other failure scenarios below.
> 
> >  }
> >  f = fopen(fullpath, "r");
> >  if (f == NULL) {
> > -return 0;
> > +if (snprintf(fullpath, sizeof(fullpath),
> > +TEST_POWER_SYSFILE_CPUINFO_FREQ, lcore_id) < 0) {
> > +return 0;
> > +}
> > +f = fopen(fullpath, "r");
> > +if (f == NULL) {
> > +return 0;
> > +}
> >  }





More information about the dev mailing list