sched: Implement group scheduler statistics in one struct
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 11 Mar 2010 02:37:45 +0000 (23:37 -0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 11 Mar 2010 14:22:28 +0000 (15:22 +0100)
commit41acab8851a0408c1d5ad6c21a07456f88b54d40
tree28b23b930571c1f6dfd5c4e8129a2a7ea2056307
parent3d07467b7aa91623b31d7b5888a123a2c8c8e9cc
sched: Implement group scheduler statistics in one struct

Put all statistic fields of sched_entity in one struct, sched_statistics,
and embed it into sched_entity.

This change allows to memset the sched_statistics to 0 when needed (for
instance when forking), avoiding bugs of non initialized fields.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1268275065-18542-1-git-send-email-lucas.de.marchi@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h
kernel/sched.c
kernel/sched_debug.c
kernel/sched_fair.c
kernel/sched_rt.c