mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 17:23:25 -05:00
Revert "cpuacct: reduce one NULL check in fast-path"
This reverts commit 7a46c594bf
.
This was applied to the x86 tree mistakenly, it belongs into the
scheduler tree.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
3fab191002
commit
5a3c8fe735
1 changed files with 2 additions and 3 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Reference in a new issue