linux-power issueshttps://gitlab.arm.com/linux-arm/linux-power/-/issues2023-11-03T16:30:00Zhttps://gitlab.arm.com/linux-arm/linux-power/-/issues/1Possible Bug on find_energy_efficient_cpu.2023-11-03T16:30:00ZGhost UserPossible Bug on find_energy_efficient_cpu.Hi guys!
I was studying your code about EAS on CFS and I saw something that made me thinking.
In your code in fair.c ::find_energy_efficient_cpu() at line 6293 there is this instruction:
**base_energy_pd = compute_energy(p, -1, pd);**...Hi guys!
I was studying your code about EAS on CFS and I saw something that made me thinking.
In your code in fair.c ::find_energy_efficient_cpu() at line 6293 there is this instruction:
**base_energy_pd = compute_energy(p, -1, pd);**
So in base_energy_pd there is the energy consumed by the core without p.
After this there is at line 6317
**prev_delta = compute_energy(p, prev_cpu, pd);**
That compute the energy with p on core prev_cpu.
My question is: Is safe do this operation without checking that OPP is the same? Could p on prev_cpu rising the OPP of the entire pd?
Thanks a lot!