X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbust_spinlocks.c;h=486da62b2b070368f30d53b8feb2de33f0a5167a;hb=860da5e578c25d1ab4528c0d1ad13f9969e3490f;hp=accb3565816993630ab98bc7818f3afe75307fa5;hpb=9cdd79c9b99873d600d397fda012fc3f57cc2776;p=linux-2.6 diff --git a/lib/bust_spinlocks.c b/lib/bust_spinlocks.c index accb356581..486da62b2b 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(); } }