patch-2.3.35 linux/drivers/char/n_hdlc.c
Next file: linux/drivers/char/pc_keyb.c
Previous file: linux/drivers/block/rd.c
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
Tue Dec 21 10:13:00 1999
- Orig file:
v2.3.34/linux/drivers/char/n_hdlc.c
- Orig date:
Thu Nov 11 20:11:34 1999
diff -u --recursive --new-file v2.3.34/linux/drivers/char/n_hdlc.c linux/drivers/char/n_hdlc.c
@@ -9,7 +9,7 @@
* Al Longyear <longyear@netcom.com>, Paul Mackerras <Paul.Mackerras@cs.anu.edu.au>
*
* Original release 01/11/99
- * ==FILEDATE 19990901==
+ * ==FILEDATE 19991217==
*
* This code is released under the GNU General Public License (GPL)
*
@@ -78,7 +78,7 @@
*/
#define HDLC_MAGIC 0x239e
-#define HDLC_VERSION "1.11"
+#define HDLC_VERSION "1.13"
#include <linux/version.h>
#include <linux/config.h>
@@ -171,6 +171,7 @@
#if LINUX_VERSION_CODE < VERSION(2,1,0)
#define __init
typedef int spinlock_t;
+#define spin_lock_init(a)
#define spin_lock_irqsave(a,b) {save_flags((b));cli();}
#define spin_unlock_irqrestore(a,b) {restore_flags((b));}
#define spin_lock(a)
@@ -659,8 +660,11 @@
/* wake up any blocked reads and perform async signalling */
wake_up_interruptible (&n_hdlc->read_wait);
if (n_hdlc->tty->fasync != NULL)
+#if LINUX_VERSION_CODE < VERSION(2,3,0)
+ kill_fasync (n_hdlc->tty->fasync, SIGIO);
+#else
kill_fasync (n_hdlc->tty->fasync, SIGIO, POLL_IN);
-
+#endif
} /* end of n_hdlc_tty_receive() */
/* n_hdlc_tty_read()
@@ -1072,7 +1076,7 @@
void n_hdlc_buf_list_init(N_HDLC_BUF_LIST *list)
{
memset(list,0,sizeof(N_HDLC_BUF_LIST));
-
+ spin_lock_init(&list->spinlock);
} /* end of n_hdlc_buf_list_init() */
/* n_hdlc_buf_put()
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)