mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
sched: clean up the rt priority macros
clean up the rt priority macros, pointed out by Andrew Morton. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
138a8aeb5b
commit
e05606d330
3 changed files with 54 additions and 31 deletions
|
@ -290,7 +290,7 @@ static void reparent_to_kthreadd(void)
|
|||
/* Set the exit signal to SIGCHLD so we signal init on exit */
|
||||
current->exit_signal = SIGCHLD;
|
||||
|
||||
if (!has_rt_policy(current) && (task_nice(current) < 0))
|
||||
if (task_nice(current) < 0)
|
||||
set_user_nice(current, 0);
|
||||
/* cpus_allowed? */
|
||||
/* rt_priority? */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue