]> www.pilppa.org Git - linux-2.6-omap-h63xx.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)
committerDave Jones <davej@redhat.com>
Thu, 21 Jun 2007 16:57:53 +0000 (12:57 -0400)
commit0af99b13c9f323e658b4f1d69a1ccae7d6f3f80a
tree531d6ae823c0e7facfd375106f79c213c4a1290b
parentc7f652e0487a35c16f6cd72707232b6a28647a10
[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>
drivers/cpufreq/cpufreq_ondemand.c