Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6902d1f6 authored by rahul.khandelwal's avatar rahul.khandelwal
Browse files

subsystem: CPU FREQUENCY DRIVERS- Set cpu_load calculation on current frequency



In timer, cpu_load is calcuated on target_freq.
cpu_load = loadadjfreq / pcpu->target_freq;
But cpu is actually running on current freq i.e. pcpu->policy->cur. So cpu_load
should be calculated on current frequency.
cpu_load = loadadjfreq / pcpu->policy->cur;

Change-Id: I89db6b68e9f82aa52077f6bf7d819dab74265790
Signed-off-by: default avatarrahul.khandelwal <rahul.khandelwal@spreadtrum.com>
parent 86aa0483
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment