[PATCH] softlockup: trivial, s/99/MAX_RT_PRIO/

From: Oleg Nesterov
Date: Fri Feb 16 2007 - 17:39:27 EST


Don't use hardcoded 99 value, use MAX_RT_PRIO.

Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>

--- 6.20-rc6-mm3/kernel/softlockup.c~ 2006-10-22 18:24:03.000000000 +0400
+++ 6.20-rc6-mm3/kernel/softlockup.c 2007-02-17 01:35:57.000000000 +0300
@@ -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, &param);
current->flags |= PF_NOFREEZE;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/