From 02fb6149f7a64c62934c035e7635321cb9a8cf2e Mon Sep 17 00:00:00 2001 From: Oleg Nesterov Date: Tue, 8 May 2007 00:24:03 -0700 Subject: 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 --- kernel/softlockup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/softlockup.c b/kernel/softlockup.c index 50afeb81330..81d43caa201 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; -- cgit