alistair23-linux/kernel/sched
Glauber Costa 54c707e98d sched/accounting: Re-use scheduler statistics for the root cgroup
Right now, after we collect tick statistics for user and system and store them
in a well known location, we keep the same statistics again for cpuacct.
Since cpuacct is hierarchical, the numbers for the root cgroup should be
absolutely equal to the system-wide numbers.

So it would be better to just use it: this patch changes cpuacct accounting
in a way that the cpustat statistics are kept in a struct kernel_cpustat percpu
array. In the root cgroup case, we just point it to the main array. The rest of
the hierarchy walk can be totally disabled later with a static branch - but I am
not doing it here.

Signed-off-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Tuner <pjt@google.com>
Link: http://lkml.kernel.org/r/1322498719-2255-4-git-send-email-glommer@parallels.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2011-12-06 20:51:21 +01:00
..
auto_group.c sched: Move all scheduler bits into kernel/sched/ 2011-11-17 12:20:22 +01:00
auto_group.h sched: Move all scheduler bits into kernel/sched/ 2011-11-17 12:20:22 +01:00
clock.c sched: Move all scheduler bits into kernel/sched/ 2011-11-17 12:20:22 +01:00
core.c sched/accounting: Re-use scheduler statistics for the root cgroup 2011-12-06 20:51:21 +01:00
cpupri.c sched: Move all scheduler bits into kernel/sched/ 2011-11-17 12:20:22 +01:00
cpupri.h sched: Move all scheduler bits into kernel/sched/ 2011-11-17 12:20:22 +01:00
debug.c sched: Move all scheduler bits into kernel/sched/ 2011-11-17 12:20:22 +01:00
fair.c sched: Save some hrtick_start_fair cycles 2011-12-06 20:51:20 +01:00
features.h sched: Move all scheduler bits into kernel/sched/ 2011-11-17 12:20:22 +01:00
idle_task.c sched: Move all scheduler bits into kernel/sched/ 2011-11-17 12:20:22 +01:00
Makefile sched: Move all scheduler bits into kernel/sched/ 2011-11-17 12:20:22 +01:00
rt.c sched/rt: Code cleanup, remove a redundant function call 2011-12-06 09:06:28 +01:00
sched.h sched/accounting: Re-use scheduler statistics for the root cgroup 2011-12-06 20:51:21 +01:00
stats.c sched: Move all scheduler bits into kernel/sched/ 2011-11-17 12:20:22 +01:00
stats.h sched: Move all scheduler bits into kernel/sched/ 2011-11-17 12:20:22 +01:00
stop_task.c sched: Move all scheduler bits into kernel/sched/ 2011-11-17 12:20:22 +01:00