X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=lib%2Fbust_spinlocks.c;h=9681d54b95d127878405d5ff0afec6fcc575fbae;hb=5e7bb132bbed2088b8b103e410d143b341dcb837;hp=accb3565816993630ab98bc7818f3afe75307fa5;hpb=9468482bd4c3b89abe04a770848d5eaa1ea830b0;p=linux-2.6-omap-h63xx.git diff --git a/lib/bust_spinlocks.c b/lib/bust_spinlocks.c index accb3565816..9681d54b95d 100644 --- a/lib/bust_spinlocks.c +++ b/lib/bust_spinlocks.c @@ -12,18 +12,20 @@ #include #include #include +#include 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(); + console_unblank(); + if (--oops_in_progress == 0) + wake_up_klogd(); } }