]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
kernel/rtmutex-debug.c: cleanups
authorAdrian Bunk <bunk@stusta.de>
Wed, 17 Oct 2007 06:26:40 +0000 (23:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:50 +0000 (08:42 -0700)
This patch contains the following cleanups:
- make the needlessly global variable rt_trace_on static
- remove the unused global function deadlock_trace_off()

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/rtmutex-debug.c

index 5aedbee014dfca7f2ebdce84e62d1c1bac87fab2..6b0703db152d2a61411595380ce4b608e98f6890 100644 (file)
@@ -82,12 +82,7 @@ do {                                         \
  * into the tracing code when doing error printk or
  * executing a BUG():
  */
-int rt_trace_on = 1;
-
-void deadlock_trace_off(void)
-{
-       rt_trace_on = 0;
-}
+static int rt_trace_on = 1;
 
 static void printk_task(struct task_struct *p)
 {