This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: Calculate A72 cpu load

Part Number: TDA4VM

Hello,

I have a problem with an error in calculating the A72 cpu;  

raw code, I don't understand why use '+=' ?

I think it is more appropriate to use '='

I

utils/perf_stats/src/app_perf_stats_linux.c

void appPerfStatsCpuLoadCalc()
{
   ...
    obj->cpuLoad.total_time   += total_time;
    obj->cpuLoad.busy_time    += (total_time - (diff_cnt[3] + diff_cnt[4]));
   ...
}

  • Hi,

    Actually it is recommend to reset the load values once read using the reset API available in app_perf_stats_api.c
    Hence, basically it would work similar to "=" in that scenario.

    May I know if this resolves your issue?

    Regards,
    Nikhil