diff options
author | Mike Chan <mike@android.com> | 2010-05-12 15:52:14 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2010-09-29 17:49:41 -0700 |
commit | 9237de98d15eb3144934214685b288eb3c83c9c8 (patch) | |
tree | 9a3357b27b91ef699dd5ae9e65aa9261312481a1 /Documentation | |
parent | 8d8e56b794316003db0e9736f95ad7196fc81c68 (diff) |
scheduler: cpuacct: Enable platform callbacks for cpuacct power tracking
Platform must register cpu power function that return power in
milliWatt seconds.
Change-Id: I1caa0335e316c352eee3b1ddf326fcd4942bcbe8
Signed-off-by: Mike Chan <mike@android.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/cgroups/cpuacct.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/cgroups/cpuacct.txt b/Documentation/cgroups/cpuacct.txt index 600d2d0b85f0..84e471b612eb 100644 --- a/Documentation/cgroups/cpuacct.txt +++ b/Documentation/cgroups/cpuacct.txt @@ -44,6 +44,9 @@ 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.power file gives CPU power consumed (in milliWatt seconds). Platform +must provide and implement power callback functions. + cpuacct controller uses percpu_counter interface to collect user and system times. This has two side effects: |