diff options
author | Venki Pallipadi <venkatesh.pallipadi@intel.com> | 2007-06-20 14:24:52 -0700 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2007-06-21 12:57:53 -0400 |
commit | 0af99b13c9f323e658b4f1d69a1ccae7d6f3f80a (patch) | |
tree | 531d6ae823c0e7facfd375106f79c213c4a1290b /drivers/cpufreq/cpufreq.c | |
parent | c7f652e0487a35c16f6cd72707232b6a28647a10 (diff) | |
download | op-kernel-dev-0af99b13c9f323e658b4f1d69a1ccae7d6f3f80a.zip op-kernel-dev-0af99b13c9f323e658b4f1d69a1ccae7d6f3f80a.tar.gz |
[CPUFREQ] ondemand: add a check to avoid negative load calculation
Due to rounding and inexact jiffy accounting, idle_ticks can sometimes
be higher than total_ticks. Make sure those cases are handled as
zero load case.
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
0 files changed, 0 insertions, 0 deletions