sched: clean up sched_fork()
commit2ddbf952508fb9911036c484a87f6351106b917c
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Mon, 15 Oct 2007 15:00:11 +0000 (15 17:00 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Oct 2007 15:00:11 +0000 (15 17:00 +0200)
tree73ced0c94ccb2356a08fc84e7b4258e75484789c
parent368059a977871def0f88a92eefb6ecc1f7b6132f
sched: clean up sched_fork()

The adjusting sched_class is a missing part of the already existing "do
not leak PI boosting priority to the child" at the sched_fork(). This
patch moves the adjusting sched_class from wake_up_new_task() to
sched_fork().

this also shrinks the code a bit:

   text    data     bss     dec     hex filename
  40111    4018     292   44421    ad85 sched.o.before
  40102    4018     292   44412    ad7c sched.o.after

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Dmitry Adamushko <dmitry.adamushko@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
kernel/sched.c