aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bust_spinlocks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bust_spinlocks.c b/lib/bust_spinlocks.c
index accb35658169..486da62b2b07 100644
--- a/lib/bust_spinlocks.c
+++ b/lib/bust_spinlocks.c
@@ -17,13 +17,13 @@
17void __attribute__((weak)) 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;
21 } else { 21 } else {
22#ifdef CONFIG_VT 22#ifdef CONFIG_VT
23 unblank_screen(); 23 unblank_screen();
24#endif 24#endif
25 oops_in_progress = 0; 25 if (--oops_in_progress == 0)
26 wake_up_klogd(); 26 wake_up_klogd();
27 } 27 }
28} 28}
29 29