Skip to content

Enable CPU frequency and power tracking in cpuacct cgroup

Mike Chan linux-omap lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v14 patches 4 repliesSuperseded

Changes in v2 from the cover letter

Rebased off of Thomas Renninger's patch for cgroups_cpuacct refactoring, which is based off of linus's tree. Thomas it might be easier to merge our patches if you take these patches and put them in a series ontop of your original patches (presuming there are no objections to your patch).

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3scheduler: cpuacct: Enable platform hooks to track cpuusage for CPU frequenciesDocumentation/cgroups/cpuacct.txt include/linux/cpuacct.h kernel/cgroup_cpuaccount.c+94 -00 replies
2/3scheduler: cpuacct: Enable platform callbacks for cpuacct power trackingDocumentation/cgroups/cpuacct.txt include/linux/cpuacct.h kernel/cgroup_cpuaccount.c+28 -30 replies
3/3omap: cpu: Implement callbacks for cpu frequency tracking in cpuacctarch/arm/plat-omap/cpu-omap.c+66 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Enable CPU frequency and power tracking in cpuacct cgroup

v2:
Rebased off of Thomas Renninger's patch for cgroups_cpuacct refactoring, which is based off of linus's tree. Thomas it might be easier to merge our patches if you take these patches and put them in a series ontop of your original patches (presuming there are no objections to your patch).

This patch series introduces cpu frequency and power tracking for cpuacct cgroups. A similar patch set was discussed a while back and it was concluded that due to varying architectures (ppc, x86 with overboot) you cannot account for frequencies and their power consumption generically in sched.c, thus we have platform specific hooks the cpuacct can call into (if available).

This patch series is not 3 instead of 4. I have left out the power implementation for OMAP due to implementation conflicts in linux-next.

Mike Chan (3):
scheduler: cpuacct: Enable platform hooks to track cpuusage for CPU
frequencies
scheduler: cpuacct: Enable platform callbacks for cpuacct power
tracking
omap: cpu: Implement callbacks for cpu frequency tracking in cpuacct

 Documentation/cgroups/cpuacct.txt |    7 ++++
 arch/arm/plat-omap/cpu-omap.c     |   67 +++++++++++++++++++++++++++++++++++-
 include/linux/cpuacct.h           |   43 +++++++++++++++++++++++
 kernel/cgroup_cpuaccount.c        |   69 +++++++++++++++++++++++++++++++++++++
 4 files changed, 185 insertions(+), 1 deletions(-)
 create mode 100644 include/linux/cpuacct.h