Commit 02fb6149 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds

softlockup: s/99/MAX_RT_PRIO/

Don't use hardcoded 99 value, use MAX_RT_PRIO.
Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1065d130
...@@ -82,7 +82,7 @@ void softlockup_tick(void) ...@@ -82,7 +82,7 @@ void softlockup_tick(void)
*/ */
static int watchdog(void * __bind_cpu) static int watchdog(void * __bind_cpu)
{ {
struct sched_param param = { .sched_priority = 99 }; struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 };
sched_setscheduler(current, SCHED_FIFO, &param); sched_setscheduler(current, SCHED_FIFO, &param);
current->flags |= PF_NOFREEZE; current->flags |= PF_NOFREEZE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment