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 /include/linux | |
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 'include/linux')
-rw-r--r-- | include/linux/cpuacct.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/cpuacct.h b/include/linux/cpuacct.h index 560df02f0986..8f68e733fe19 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); |