projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dc3e90
)
[PATCH] reparent_to_init(): use has_rt_policy()
author
Oleg Nesterov
<
[email protected]
>
Fri, 29 Sep 2006 09:00:51 +0000
(
02:00
-0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 29 Sep 2006 16:18:18 +0000
(09:18 -0700)
Remove open-coded has_rt_policy(), no changes in kernel/exit.o
Signed-off-by: Oleg Nesterov <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Steven Rostedt <
[email protected]
>
Cc: Nick Piggin <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/exit.c
patch
|
blob
|
history
diff --git
a/kernel/exit.c
b/kernel/exit.c
index a51b347ae67be88911e9275c2d044f5318bc5acd..4a280856acd2e8db9252c3e3f340b499b7edafc2 100644
(file)
--- a/
kernel/exit.c
+++ b/
kernel/exit.c
@@
-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? */