OSDN Git Service

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)
committerIliyan Malchev <malchev@google.com>
Mon, 23 May 2011 22:43:41 +0000 (15:43 -0700)
commit80652113791dba1b763e5ca9c7ed439f5b730087
tree654b26f41185a4c3cbc2878c0e191ea90e1c2ecf
parentf35d31aa2b316fb691dc391f4ee1793898215efd
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