]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
CPUFREQ: ondemand: add a check to avoid negative load calculation
authorVenki Pallipadi <venkatesh.pallipadi@intel.com>
Wed, 20 Jun 2007 21:24:52 +0000 (14:24 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 15 Aug 2007 16:25:10 +0000 (09:25 -0700)
commit72a63b079035709b481edffa301c4a694e008384
tree6658b67019adbec1adda112478b4631fb1d327c0
parent42418d94efa05105ba5a467119d3864201425430
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>
drivers/cpufreq/cpufreq_ondemand.c