nfs: new subdir Documentation/filesystems/nfs
[safe/jmp/linux-2.6] / lib / bust_spinlocks.c
index accb356..9681d54 100644 (file)
 #include <linux/tty.h>
 #include <linux/wait.h>
 #include <linux/vt_kern.h>
+#include <linux/console.h>
 
 
 void __attribute__((weak)) bust_spinlocks(int yes)
 {
        if (yes) {
-               oops_in_progress = 1;
+               ++oops_in_progress;
        } else {
 #ifdef CONFIG_VT
                unblank_screen();
 #endif
-               oops_in_progress = 0;
-               wake_up_klogd();
+               console_unblank();
+               if (--oops_in_progress == 0)
+                       wake_up_klogd();
        }
 }