X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbust_spinlocks.c;h=486da62b2b070368f30d53b8feb2de33f0a5167a;hb=6f7917afef1cb218fbf18eb4becf3c02907d2023;hp=a2055bc3ef623d1b2f4659bdbd7dfe729ae47aa6;hpb=026477c1141b67e98e3bd8bdedb7d4b88a3ecd09;p=pandora-kernel.git diff --git a/lib/bust_spinlocks.c b/lib/bust_spinlocks.c index a2055bc3ef62..486da62b2b07 100644 --- a/lib/bust_spinlocks.c +++ b/lib/bust_spinlocks.c @@ -14,24 +14,16 @@ #include -void bust_spinlocks(int yes) +void __attribute__((weak)) bust_spinlocks(int yes) { if (yes) { - oops_in_progress = 1; + ++oops_in_progress; } else { - int loglevel_save = console_loglevel; #ifdef CONFIG_VT unblank_screen(); #endif - oops_in_progress = 0; - /* - * OK, the message is on the console. Now we call printk() - * without oops_in_progress set so that printk() will give klogd - * and the blanked console a poke. Hold onto your hats... - */ - console_loglevel = 15; /* NMI oopser may have shut the console up */ - printk(" "); - console_loglevel = loglevel_save; + if (--oops_in_progress == 0) + wake_up_klogd(); } }