diff options
author | Hanumath Prasad <hpprasad@codeaurora.org> | 2016-02-08 17:44:07 +0530 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:25:30 -0700 |
commit | 8caa9abdb28eeab2d27167227e454474542861ef (patch) | |
tree | 2244ee6ebc700ee08fe9addb111f035bb110d1a9 /AndroidKernel.mk | |
parent | 3eb23fd73cdde9176d3c5e8d6a39c7eacb446436 (diff) |
cpufreq: interactive: use mult_frac in sl_busy_to_laf
Currently the load argument is taken as unsigned long in
sl_busy_to_laf. In case of 32-bit kernels, the use of
unsigned long results in overflows since it is only 32-bits.
And so the cpu_load calculation is going wrong and most of
the times getting reported very low values. Hence use
mult_frac call to avoid overflows when the final result
is expected to be within 32-bits.
Change-Id: Ib9e8bf6e777cd07b141761fb14c80840563b4cd5
Signed-off-by: Hanumath Prasad <hpprasad@codeaurora.org>
Diffstat (limited to 'AndroidKernel.mk')
0 files changed, 0 insertions, 0 deletions