sched: Reset sched stats on fork()
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 9 Jul 2009 11:57:20 +0000 (13:57 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 10 Jul 2009 08:43:29 +0000 (10:43 +0200)
commit7793527b90d9418211f4fe8464cc1dcb1631ea1b
treea09cdbe3942d9ba22877976737a220f9aaac2a04
parenta1ba4d8ba9f06a397e97cbd67a93ee306860b40a
sched: Reset sched stats on fork()

The sched_stat fields are currently not reset upon fork.
Ingo's recent commit 6c594c21fcb02c662f11c97be4d7d2b73060a205
did reset nr_migrations, but it didn't reset any of the
others.

This patch resets all sched_stat fields on fork.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <193b0f820907090457s7a3662f4gcdecdc22fcae857b@mail.gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c