sched: Preserve the nice level over sched_setscheduler() and sched_setparam() calls
authorPeter Zijlstra <peterz@infradead.org>
Wed, 15 Jan 2014 11:30:15 +0000 (12:30 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 16 Jan 2014 08:27:14 +0000 (09:27 +0100)
commite3de300d1212b42aa9d0d6031b12fca06ac00dd9
tree630b79be92ea0c689b17d9363eb3020fca21255e
parent5778fccf361c9ba443b45d822f3d875f64c80084
sched: Preserve the nice level over sched_setscheduler() and sched_setparam() calls

Previously sched_setscheduler() and sched_setparam() would not affect
the nice value of a task, restore this behaviour.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: raistlin@linux.it
Cc: juri.lelli@gmail.com
Cc: Michael wang <wangyun@linux.vnet.ibm.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Fixes: d50dde5a10f3 ("sched: Add new scheduler syscalls to support an extended scheduling parameters ABI")
Link: http://lkml.kernel.org/r/20140115113015.GB31570@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c