projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fab191
)
Revert "cpuacct: reduce one NULL check in fast-path"
author
Ingo Molnar
<mingo@elte.hu>
Mon, 30 Mar 2009 14:14:40 +0000
(16:14 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 30 Mar 2009 14:15:05 +0000
(16:15 +0200)
This reverts commit
7a46c594bf7f1f2eeb1e12d4b857d5f581957a92
.
This was applied to the x86 tree mistakenly, it belongs into the
scheduler tree.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c
patch
|
blob
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index
2246591
..
f4c413b
100644
(file)
--- a/
kernel/sched.c
+++ b/
kernel/sched.c
@@
-10001,11
+10001,10
@@
static void cpuacct_charge(struct task_struct *tsk, u64 cputime)
cpu = task_cpu(tsk);
ca = task_ca(tsk);
-
do
{
+
for (; ca; ca = ca->parent)
{
u64 *cpuusage = per_cpu_ptr(ca->cpuusage, cpu);
*cpuusage += cputime;
- ca = ca->parent;
- } while (ca);
+ }
}
struct cgroup_subsys cpuacct_subsys = {