Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138719
b: refs/heads/master
c: 7a46c59
h: refs/heads/master
i:
  138717: 8f6f005
  138715: 44ed27b
  138711: e51ebee
  138703: 9830f8c
  138687: 48de3ae
v: v3
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Mar 13, 2009
1 parent fe844ab commit 740be68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 65a37b29a8d7492f081d4f8da2227467af1c0c1d
refs/heads/master: 7a46c594bf7f1f2eeb1e12d4b857d5f581957a92
5 changes: 3 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -9599,10 +9599,11 @@ static void cpuacct_charge(struct task_struct *tsk, u64 cputime)
cpu = task_cpu(tsk);
ca = task_ca(tsk);

for (; ca; ca = ca->parent) {
do {
u64 *cpuusage = per_cpu_ptr(ca->cpuusage, cpu);
*cpuusage += cputime;
}
ca = ca->parent;
} while (ca);
}

struct cgroup_subsys cpuacct_subsys = {
Expand Down

0 comments on commit 740be68

Please sign in to comment.