GoogleGit

commit6902d1f6c261ed7fe256f75611bc7125a160b621[log][tgz]
authorrahul.khandelwal <rahul.khandelwal@spreadtrum.com>Fri Apr 17 11:45:23 2015 +0530
committerrahul.khandelwal <rahul.khandelwal@spreadtrum.com>Fri Apr 17 11:45:23 2015 +0530
treeb3cf245894cbb5999268815204226b6d429aab07
parent86aa0483b64c9c8c89a5e00d7e21f66ff4942d15[diff]
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: rahul.khandelwal <rahul.khandelwal@spreadtrum.com>
1 file changed
tree: b3cf245894cbb5999268815204226b6d429aab07
  1. .gitignore
  2. .mailmap
  3. COPYING
  4. CREDITS
  5. Documentation/
  6. Kbuild
  7. Kconfig
  8. MAINTAINERS
  9. Makefile
  10. README
  11. REPORTING-BUGS
  12. android/
  13. arch/
  14. block/
  15. crypto/
  16. drivers/
  17. firmware/
  18. fs/
  19. include/
  20. init/
  21. ipc/
  22. kernel/
  23. lib/
  24. mm/
  25. net/
  26. samples/
  27. scripts/
  28. security/
  29. sound/
  30. tools/
  31. usr/
  32. virt/