mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
1065d130dd
commit
02fb6149f7
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ void softlockup_tick(void)
|
|||
*/
|
||||
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, ¶m);
|
||||
current->flags |= PF_NOFREEZE;
|
||||
|
|
Loading…
Reference in a new issue