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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:05:44 +0000 (12:05 -0800)
commit511deada9819a9f866804c3118ce04fa176f1463
treea7e9305ece1744ee5a46d986a3d44fd0ff5874ed
parent7022449d84fe2d4f0fb2bb40f149131c36925543
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