]> git.hungrycats.org Git - linux/commit
[PATCH] Make ppp_async callable from hard interrupt
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 02:28:17 +0000 (18:28 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 02:28:17 +0000 (18:28 -0800)
commit2996d8deaeddd01820691a872550dc0cfba0c37d
tree92425069dc0996f44f5492e8e831a9aa0f58297c
parent42c4d9c7b98c1e9b59a5e0f7b9a2da82b463cdfe
[PATCH] Make ppp_async callable from hard interrupt

From: Paul Mackerras <paulus@samba.org>

Since there are serial drivers (particularly the USB serial driver) that
call the line discipline receive_buf and write_wakeup routines at hard
interrupt level, I have changed the ppp_async code to cope with that.  It
now uses a tasklet so that it calls the generic PPP code at soft interrupt
level even if its receive_buf and write_wakeup entries are called at hard
interrupt level.

This patch has been lightly tested here with a keyspan USB serial adaptor
and also with the built-in modem on my tibook, which uses the pmac_zilog
driver (which hooks into the drivers/serial infrastructure).
drivers/net/ppp_async.c