scheduler: cpuacct: Enable platform hooks to track cpuusage for CPU frequencies
authorMike Chan <mike@android.com>
Tue, 11 May 2010 00:54:48 +0000 (17:54 -0700)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:41 +0000 (17:49 -0700)
commit8d8e56b794316003db0e9736f95ad7196fc81c68
treeb957da9b6920f7cb54dc32a9cc44ae0487f4664f
parent73b1c8a4ea3b04e306e31f297d3e39728bc854c2
scheduler: cpuacct: Enable platform hooks to track cpuusage for CPU frequencies

Introduce new platform callback hooks for cpuacct for tracking CPU frequencies

Not all platforms / architectures have a set CPU_FREQ_TABLE defined
for CPU transition speeds. In order to track time spent in at various
CPU frequencies, we enable platform callbacks from cpuacct for this accounting.

Architectures that support overclock boosting, or don't have pre-defined
frequency tables can implement their own bucketing system that makes sense
given their cpufreq scaling abilities.

New file:
cpuacct.cpufreq reports the CPU time (in nanoseconds) spent at each CPU
frequency.

Change-Id: I10a80b3162e6fff3a8a2f74dd6bb37e88b12ba96
Signed-off-by: Mike Chan <mike@android.com>
Documentation/cgroups/cpuacct.txt
include/linux/cpuacct.h [new file with mode: 0644]
kernel/sched.c