sched: Use macro for magic number of -1 for setparam
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 23 Jul 2014 15:28:26 +0000 (11:28 -0400)
committerIngo Molnar <mingo@kernel.org>
Mon, 28 Jul 2014 08:04:14 +0000 (10:04 +0200)
commitc13db6b131a4388edca9867a1457b988b83902f8
tree8cff077493d86c6213dc952358122ccc52fda606
parent6ae72dff37596f736b795426306404f0793e4b1b
sched: Use macro for magic number of -1 for setparam

Instead of passing around a magic number -1 for the sched_setparam()
policy, use a more descriptive macro name like SETPARAM_POLICY.

[ based on top of Daniel's sched_setparam() fix ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Daniel Bristot de Oliveira<bristot@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20140723112826.6ed6cbce@gandalf.local.home
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c