projects/linux·commit a4d63e72

kernel/rtmutex-debug.c: cleanups

a4d63e72 · Adrian Bunk <[email protected]> · 2007-10-16 23:26:40 -07:00

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 <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
a4d63e729edad704af95e5f2a56e8c8eaaa5216b
Parents
6d760133

Changes

1 files changed · +1 −6

FileStatusAddDelContent
kernel/rtmutex-debug.cmodified+1−6View file

kernel/rtmutex-debug.c

View file
diff --git a/kernel/rtmutex-debug.c b/kernel/rtmutex-debug.c
index 5aedbee..6b0703d 100644
--- a/kernel/rtmutex-debug.c
+++ b/kernel/rtmutex-debug.c
@@ -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)
{