sched/deadline: Change sched_getparam() behaviour vs SCHED_DEADLINE
authorPeter Zijlstra <peterz@infradead.org>
Mon, 12 May 2014 20:50:34 +0000 (22:50 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 May 2014 08:21:26 +0000 (10:21 +0200)
commitce5f7f8200ca2504f6f290044393d73ca314965a
treec82c7cb66b268676f8da0e3801c5ce1240ce693c
parentdbdb22754fde671dc93d2fae06f8be113d47f2fb
sched/deadline: Change sched_getparam() behaviour vs SCHED_DEADLINE

The way we read POSIX one should only call sched_getparam() when
sched_getscheduler() returns either SCHED_FIFO or SCHED_RR.

Given that we currently return sched_param::sched_priority=0 for all
others, extend the same behaviour to SCHED_DEADLINE.

Requested-by: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Dario Faggioli <raistlin@linux.it>
Cc: linux-man <linux-man@vger.kernel.org>
Cc: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
Cc: Juri Lelli <juri.lelli@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: <stable@vger.kernel.org>
Link: http://lkml.kernel.org/r/20140512205034.GH13467@laptop.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c