Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

softlockup: s/99/MAX_RT_PRIO/

Don't use hardcoded 99 value, use MAX_RT_PRIO.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Oleg Nesterov and committed by
Linus Torvalds
02fb6149 1065d130

+1 -1
+1 -1
kernel/softlockup.c
··· 82 82 */ 83 83 static int watchdog(void * __bind_cpu) 84 84 { 85 - struct sched_param param = { .sched_priority = 99 }; 85 + struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 }; 86 86 87 87 sched_setscheduler(current, SCHED_FIFO, &param); 88 88 current->flags |= PF_NOFREEZE;