[PATCH] lockdep: stacktrace subsystem, i386 support
[pandora-kernel.git] / kernel / exit.c
index ab06b9f..c595db1 100644 (file)
@@ -4,7 +4,6 @@
  *  Copyright (C) 1991, 1992  Linus Torvalds
  */
 
-#include <linux/config.h>
 #include <linux/mm.h>
 #include <linux/slab.h>
 #include <linux/interrupt.h>
@@ -934,10 +933,9 @@ fastcall NORET_TYPE void do_exit(long code)
        if (unlikely(current->pi_state_cache))
                kfree(current->pi_state_cache);
        /*
-        * If DEBUG_MUTEXES is on, make sure we are holding no locks:
+        * Make sure we are holding no locks:
         */
-       mutex_debug_check_no_locks_held(tsk);
-       rt_mutex_debug_check_no_locks_held(tsk);
+       debug_check_no_locks_held(tsk);
 
        if (tsk->io_context)
                exit_io_context();