* [PATCH] reparent_to_init: use has_rt_policy()
@ 2006-08-19 19:52 Oleg Nesterov
0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2006-08-19 19:52 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
Remove open-coded has_rt_policy(), no changes in kernel/exit.o
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
--- 2.6.18-rc4/kernel/exit.c~5_r_t_i 2006-07-16 01:53:08.000000000 +0400
+++ 2.6.18-rc4/kernel/exit.c 2006-08-19 23:47:01.000000000 +0400
@@ -292,9 +292,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? */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-08-19 15:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-19 19:52 [PATCH] reparent_to_init: use has_rt_policy() Oleg Nesterov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome