patch-2.1.104 linux/kernel/panic.c
Next file: linux/kernel/sched.c
Previous file: linux/kernel/module.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu May 21 14:24:09 1998
- Orig file:
v2.1.103/linux/kernel/panic.c
- Orig date:
Tue Mar 10 10:03:36 1998
diff -u --recursive --new-file v2.1.103/linux/kernel/panic.c linux/kernel/panic.c
@@ -35,7 +35,6 @@
{
static char buf[1024];
va_list args;
- int i;
va_start(args, fmt);
vsprintf(buf, fmt, args);
@@ -60,8 +59,7 @@
* We can't use the "normal" timers since we just panicked..
*/
printk(KERN_EMERG "Rebooting in %d seconds..",panic_timeout);
- for(i = 0; i < (panic_timeout*1000); i++)
- udelay(1000);
+ mdelay(panic_timeout*1000);
/*
* Should we run the reboot notifier. For the moment Im
* choosing not too. It might crash, be corrupt or do
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov