patch-2.4.0-test3 linux/drivers/sgi/char/sgiserial.c
Next file: linux/drivers/sgi/char/shmiq.c
Previous file: linux/drivers/sgi/char/sgicons.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Sun Jul 9 22:32:58 2000
- Orig file:
v2.4.0-test2/linux/drivers/sgi/char/sgiserial.c
- Orig date:
Sat Feb 26 22:31:49 2000
diff -u --recursive --new-file v2.4.0-test2/linux/drivers/sgi/char/sgiserial.c linux/drivers/sgi/char/sgiserial.c
@@ -665,19 +665,6 @@
}
-/*
- * This subroutine is called when the RS_TIMER goes off. It is used
- * by the serial driver to handle ports that do not have an interrupt
- * (irq=0). This doesn't work at all for 16450's, as a sun has a Z8530.
- */
-
-static void rs_timer(void)
-{
- printk("rs_timer called\n");
- prom_halt();
- return;
-}
-
static int startup(struct sgi_serial * info)
{
volatile unsigned char junk;
@@ -751,14 +738,6 @@
info->xmit_cnt = info->xmit_head = info->xmit_tail = 0;
/*
- * Set up serial timers...
- */
-#if 0 /* Works well and stops the machine. */
- timer_table[RS_TIMER].expires = jiffies + 2;
- timer_active |= 1 << RS_TIMER;
-#endif
-
- /*
* and set the speed of the serial port
*/
change_speed(info);
@@ -1842,8 +1821,6 @@
/* Setup base handler, and timer table. */
init_bh(SERIAL_BH, do_serial_bh);
- timer_table[RS_TIMER].fn = rs_timer;
- timer_table[RS_TIMER].expires = 0;
show_serial_version();
@@ -2247,7 +2224,8 @@
/*
* Register console.
*/
-void __init serial_console_init(void)
+void __init sgi_serial_console_init(void)
{
register_console(&sgi_console_driver);
}
+__initcall(rs_init);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)