]> git.baikalelectronics.ru Git - kernel.git/commit
[CPUFREQ][2/6] cpufreq: Change load calculation in ondemand for software coordination
authorvenkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>
Mon, 4 Aug 2008 18:59:08 +0000 (11:59 -0700)
committerDave Jones <davej@redhat.com>
Thu, 9 Oct 2008 17:52:43 +0000 (13:52 -0400)
commit10ce1b76817ebecbdc0cf6092e9ef5cb4e02fcda
tree41e0aa9b864aa6a3d214c1c5ad52bc1f934e1423
parent943740475bb7e2938f4fe22ab22f923da2bd417b
[CPUFREQ][2/6] cpufreq: Change load calculation in ondemand for software coordination

Change the load calculation algorithm in ondemand to work well with software
coordination of frequency across the dependent cpus.

Multiply individual CPU utilization with the average freq of that logical CPU
during the measurement interval (using getavg call). And find the max CPU
utilization number in terms of CPU freq. That number is then used to
get to the target freq for next sampling interval.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq_ondemand.c