aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bust_spinlocks.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bust_spinlocks.c')
-rw-r--r--lib/bust_spinlocks.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/bust_spinlocks.c b/lib/bust_spinlocks.c
index a2055bc3ef62..accb35658169 100644
--- a/lib/bust_spinlocks.c
+++ b/lib/bust_spinlocks.c
@@ -14,24 +14,16 @@
14#include <linux/vt_kern.h> 14#include <linux/vt_kern.h>
15 15
16 16
17void bust_spinlocks(int yes) 17void __attribute__((weak)) bust_spinlocks(int yes)
18{ 18{
19 if (yes) { 19 if (yes) {
20 oops_in_progress = 1; 20 oops_in_progress = 1;
21 } else { 21 } else {
22 int loglevel_save = console_loglevel;
23#ifdef CONFIG_VT 22#ifdef CONFIG_VT
24 unblank_screen(); 23 unblank_screen();
25#endif 24#endif
26 oops_in_progress = 0; 25 oops_in_progress = 0;
27 /* 26 wake_up_klogd();
28 * OK, the message is on the console. Now we call printk()
29 * without oops_in_progress set so that printk() will give klogd
30 * and the blanked console a poke. Hold onto your hats...
31 */
32 console_loglevel = 15; /* NMI oopser may have shut the console up */
33 printk(" ");
34 console_loglevel = loglevel_save;
35 } 27 }
36} 28}
37 29