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>
Tue, 14 Jun 2011 16:09:33 +0000 (09:09 -0700)
commitc69233f5544478b55ede08b2180a33729ab27788
treec0ea18f59072b83a7c64befea0fc69b7f05f1d77
parentc1dbe304b2f161b140b1696f9ffd45c455e5505b
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