Skip to content
Commit f83f9ac2 authored by Peter Williams's avatar Peter Williams Committed by Ingo Molnar
Browse files

sched: Set correct normal_prio and prio values in sched_fork()



normal_prio should be updated if policy changes from RT to
SCHED_MORMAL or if static_prio/nice is changed.

Some paths through sched_fork() ignore this requirement and may
result in normal_prio having an invalid value.

Fixing this issue allows the call to effective_prio() in
wake_up_new_task() to be removed.

Signed-off-by: default avatarPeter Williams <pwil3058@bigpond.net.au>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <f8f46736fd4e7f090ac0.1253774830@mudlark.pw.nest>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 374576a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment