From: Oleg Nesterov Date: Tue, 8 May 2007 07:24:03 +0000 (-0700) Subject: softlockup: s/99/MAX_RT_PRIO/ X-Git-Tag: v2.6.22-rc1~793 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02fb6149f7a64c62934c035e7635321cb9a8cf2e;p=linux-2.6 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 50afeb8133..81d43caa20 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;