LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] softlockup: trivial, s/99/MAX_RT_PRIO/
@ 2007-02-16 22:38 Oleg Nesterov
0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2007-02-16 22:38 UTC (permalink / raw)
To: Andrew Morton; +Cc: Ingo Molnar, linux-kernel
Don't use hardcoded 99 value, use MAX_RT_PRIO.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
--- 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, ¶m);
current->flags |= PF_NOFREEZE;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-16 22:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-16 22:38 [PATCH] softlockup: trivial, s/99/MAX_RT_PRIO/ Oleg Nesterov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).