[PATCH RT] Move RECURSION_LIMIT define up for global use.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LKML <linux-kernel@...>
Cc: Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>
Date: Thursday, June 28, 2007 - 6:49 pm

Ingo,

If one has CONFIG_PROVE_LOCKING off but CONFIG_TRACE_IRQFLAGS on, the
RECURSION_LIMIT definition is not defined.  This patch move
RECURSION_LIMIT up for global use.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

Index: linux-2.6.21.5-rt18/kernel/lockdep.c
===================================================================
--- linux-2.6.21.5-rt18.orig/kernel/lockdep.c	2007-06-28 18:36:32.000000000 -0400
+++ linux-2.6.21.5-rt18/kernel/lockdep.c	2007-06-28 18:36:51.000000000 -0400
@@ -44,6 +44,8 @@

 #include "lockdep_internals.h"

+#define RECURSION_LIMIT 40
+
 #ifdef CONFIG_PROVE_LOCKING
 int prove_locking = 1;
 module_param(prove_locking, int, 0644);
@@ -740,8 +742,6 @@ static noinline int print_circular_bug_t
 	return 0;
 }

-#define RECURSION_LIMIT 40
-
 static int noinline print_infinite_recursion_bug(void)
 {
 	if (!debug_locks_off_graph_unlock())
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RT] Move RECURSION_LIMIT define up for global use., Steven Rostedt, (Thu Jun 28, 6:49 pm)