X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbust_spinlocks.c;h=486da62b2b070368f30d53b8feb2de33f0a5167a;hb=4d36a9e65d4966b433b2f3424d9457468bc80e00;hp=accb3565816993630ab98bc7818f3afe75307fa5;hpb=6f8c480f998a619082f18407f8d7f4c29e94dc6e;p=linux-2.6-omap-h63xx.git diff --git a/lib/bust_spinlocks.c b/lib/bust_spinlocks.c index accb3565816..486da62b2b0 100644 --- a/lib/bust_spinlocks.c +++ b/lib/bust_spinlocks.c @@ -17,13 +17,13 @@ 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(); + if (--oops_in_progress == 0) + wake_up_klogd(); } }