summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Chan <mike@android.com>2011-10-01 14:16:19 +0100
committerAndy Green <andy.green@linaro.org>2011-10-02 09:38:29 +0100
commit32bc9be2b4d76a839705161478d1dd7dc8c95e11 (patch)
treed497c36254015368de6dbb0feccd130ca5195c43 /include
parentf5e79b982fb58e27de02bc5cff53743122f1a902 (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 'include')
-rw-r--r--include/linux/cpuacct.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/cpuacct.h b/include/linux/cpuacct.h
index 560df02f098..8f68e733fe1 100644
--- a/include/linux/cpuacct.h
+++ b/include/linux/cpuacct.h
@@ -31,7 +31,9 @@ struct cpuacct_charge_calls {
*/
void (*init) (void **cpuacct_data);
void (*charge) (void *cpuacct_data, u64 cputime, unsigned int cpu);
- void (*show) (void *cpuacct_data, struct cgroup_map_cb *cb);
+ void (*cpufreq_show) (void *cpuacct_data, struct cgroup_map_cb *cb);
+ /* Returns power consumed in milliWatt seconds */
+ u64 (*power_usage) (void *cpuacct_data);
};
int cpuacct_charge_register(struct cpuacct_charge_calls *fn);