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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Don't use hardcoded 99 value, use MAX_RT_PRIO.

Signed-off-by: Oleg Nesterov <[email protected]>

--- 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux