[PATCH] reparent_to_init(): use has_rt_policy()
Remove open-coded has_rt_policy(), no changes in kernel/exit.o Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Nick Piggin <nickpiggin@yahoo.com.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
8dc3e9099e
commit
1c573afebc
1 changed files with 1 additions and 3 deletions
|
@ -281,9 +281,7 @@ static void reparent_to_init(void)
|
|||
/* Set the exit signal to SIGCHLD so we signal init on exit */
|
||||
current->exit_signal = SIGCHLD;
|
||||
|
||||
if ((current->policy == SCHED_NORMAL ||
|
||||
current->policy == SCHED_BATCH)
|
||||
&& (task_nice(current) < 0))
|
||||
if (!has_rt_policy(current) && (task_nice(current) < 0))
|
||||
set_user_nice(current, 0);
|
||||
/* cpus_allowed? */
|
||||
/* rt_priority? */
|
||||
|
|
Loading…
Reference in a new issue