diff options
author | Venki Pallipadi <venkatesh.pallipadi@intel.com> | 2007-06-20 14:24:52 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-08-15 09:25:10 -0700 |
commit | 72a63b079035709b481edffa301c4a694e008384 (patch) | |
tree | 6658b67019adbec1adda112478b4631fb1d327c0 /mm/thrash.c | |
parent | 42418d94efa05105ba5a467119d3864201425430 (diff) |
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'mm/thrash.c')
0 files changed, 0 insertions, 0 deletions