summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorMike Chan <mike@android.com>2010-05-10 17:54:48 -0700
committermgross <mark.gross@intel.com>2011-11-09 12:05:44 -0800
commit511deada9819a9f866804c3118ce04fa176f1463 (patch)
treea7e9305ece1744ee5a46d986a3d44fd0ff5874ed /Documentation
parent7022449d84fe2d4f0fb2bb40f149131c36925543 (diff)
downloadkernel-mfld-blackbay-511deada9819a9f866804c3118ce04fa176f1463.tar.gz
kernel-mfld-blackbay-511deada9819a9f866804c3118ce04fa176f1463.tar.bz2
kernel-mfld-blackbay-511deada9819a9f866804c3118ce04fa176f1463.zip
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>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/cgroups/cpuacct.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/cgroups/cpuacct.txt b/Documentation/cgroups/cpuacct.txt
index 9ad85df4b98..2601cdd217c 100644
--- a/Documentation/cgroups/cpuacct.txt
+++ b/Documentation/cgroups/cpuacct.txt
@@ -39,6 +39,10 @@ system: Time spent by tasks of the cgroup in kernel mode.
user and system are in USER_HZ unit.
+cpuacct.cpufreq file gives CPU time (in nanoseconds) spent at each CPU
+frequency. Platform hooks must be implemented inorder to properly track
+time at each CPU frequency.
+
cpuacct controller uses percpu_counter interface to collect user and
system times. This has two side effects: