From: Oleg Nesterov Date: Tue, 8 May 2007 07:24:03 +0000 (-0700) Subject: softlockup: s/99/MAX_RT_PRIO/ X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=02fb6149f7a64c62934c035e7635321cb9a8cf2e;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git softlockup: s/99/MAX_RT_PRIO/ Don't use hardcoded 99 value, use MAX_RT_PRIO. Signed-off-by: Oleg Nesterov Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/softlockup.c b/kernel/softlockup.c index 50afeb81330..81d43caa201 100644 --- a/kernel/softlockup.c +++ b/kernel/softlockup.c @@ -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;