patch-2.4.10 linux/kernel/panic.c
Next file: linux/kernel/printk.c
Previous file: linux/kernel/module.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Sun Sep 16 21:22:40 2001
- Orig file:
v2.4.9/linux/kernel/panic.c
- Orig date:
Mon Oct 16 12:58:51 2000
diff -u --recursive --new-file v2.4.9/linux/kernel/panic.c linux/kernel/panic.c
@@ -18,7 +18,6 @@
#include <linux/interrupt.h>
asmlinkage void sys_sync(void); /* it's really int */
-extern void unblank_console(void);
int panic_timeout;
@@ -36,9 +35,8 @@
* panic - halt the system
* @fmt: The text string to print
*
- * Display a message, then unblank the console and perform
- * cleanups. Functions in the panic notifier list are called
- * after the filesystem cache is flushed (when possible).
+ * Display a message, then perform cleanups. Functions in the panic
+ * notifier list are called after the filesystem cache is flushed (when possible).
*
* This function never returns.
*/
@@ -51,6 +49,7 @@
unsigned long caller = (unsigned long) __builtin_return_address(0);
#endif
+ bust_spinlocks(1);
va_start(args, fmt);
vsprintf(buf, fmt, args);
va_end(args);
@@ -61,8 +60,7 @@
printk(KERN_EMERG "In idle task - not syncing\n");
else
sys_sync();
-
- unblank_console();
+ bust_spinlocks(0);
#ifdef CONFIG_SMP
smp_send_stop();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)