aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index a51b347ae67b..4a280856acd2 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -281,9 +281,7 @@ static void reparent_to_init(void)
281 /* Set the exit signal to SIGCHLD so we signal init on exit */ 281 /* Set the exit signal to SIGCHLD so we signal init on exit */
282 current->exit_signal = SIGCHLD; 282 current->exit_signal = SIGCHLD;
283 283
284 if ((current->policy == SCHED_NORMAL || 284 if (!has_rt_policy(current) && (task_nice(current) < 0))
285 current->policy == SCHED_BATCH)
286 && (task_nice(current) < 0))
287 set_user_nice(current, 0); 285 set_user_nice(current, 0);
288 /* cpus_allowed? */ 286 /* cpus_allowed? */
289 /* rt_priority? */ 287 /* rt_priority? */