aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/softlockup.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2007-05-08 03:24:03 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:14:59 -0400
commit02fb6149f7a64c62934c035e7635321cb9a8cf2e (patch)
treec8c3b57296c49961382ea0bc6c82aab4da1f2c48 /kernel/softlockup.c
parent1065d130dddc3241706c50a01ced7b03bcb657be (diff)
softlockup: s/99/MAX_RT_PRIO/
Don't use hardcoded 99 value, use MAX_RT_PRIO. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/softlockup.c')
-rw-r--r--kernel/softlockup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/softlockup.c b/kernel/softlockup.c
index 50afeb813305..81d43caa2012 100644
--- a/kernel/softlockup.c
+++ b/kernel/softlockup.c
@@ -82,7 +82,7 @@ void softlockup_tick(void)
82 */ 82 */
83static int watchdog(void * __bind_cpu) 83static int watchdog(void * __bind_cpu)
84{ 84{
85 struct sched_param param = { .sched_priority = 99 }; 85 struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 };
86 86
87 sched_setscheduler(current, SCHED_FIFO, &param); 87 sched_setscheduler(current, SCHED_FIFO, &param);
88 current->flags |= PF_NOFREEZE; 88 current->flags |= PF_NOFREEZE;