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

Skip to content
Commit c3ecdadc authored by rahul.khandelwal's avatar rahul.khandelwal Committed by alexax66
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 c476c8f6
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