[PATCH] Extract and use wake_up_klogd()
[linux-2.6.git] / lib / bust_spinlocks.c
index 0ee968e8e0232110f99d19f2e8aadd4b7b0cf6c4..accb3565816993630ab98bc7818f3afe75307fa5 100644 (file)
@@ -19,19 +19,11 @@ void __attribute__((weak)) bust_spinlocks(int yes)
        if (yes) {
                oops_in_progress = 1;
        } else {
        if (yes) {
                oops_in_progress = 1;
        } else {
-               int loglevel_save = console_loglevel;
 #ifdef CONFIG_VT
                unblank_screen();
 #endif
                oops_in_progress = 0;
 #ifdef CONFIG_VT
                unblank_screen();
 #endif
                oops_in_progress = 0;
-               /*
-                * OK, the message is on the console.  Now we call printk()
-                * without oops_in_progress set so that printk() will give klogd
-                * and the blanked console a poke.  Hold onto your hats...
-                */
-               console_loglevel = 15;          /* NMI oopser may have shut the console up */
-               printk(" ");
-               console_loglevel = loglevel_save;
+               wake_up_klogd();
        }
 }
 
        }
 }