sched: Adjust p->sched_reset_on_fork when nothing else changes
authorThomas Gleixner <tglx@linutronix.de>
Fri, 7 Feb 2014 19:58:40 +0000 (20:58 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 22 Feb 2014 17:08:43 +0000 (18:08 +0100)
commitd6b1e9119787fd2e31dcf0f0ce90b71197604206
tree7115c54f7f35bc92a6211aa42fd722f72475ea9a
parent8f47b1871b8aac98f1a9d93bc3467fb97b65199a
sched: Adjust p->sched_reset_on_fork when nothing else changes

If the policy and priority remain unchanged a possible modification of
p->sched_reset_on_fork gets lost in the early exit path.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
[ Rebase ontop of v3.14-rc1. ]
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1391803122-4425-5-git-send-email-bigeasy@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c