Char: cyclades, remove bottom half processing
The work done in bottom half doesn't cost much cpu time (e.g. tty_hangup itself schedules its own bottom half), it's possible to do the work in isr directly and save hence some .text. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Paul Fulghum <paulkf@microgate.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
c43422053b
commit
ebafeeff0f
@@ -569,7 +569,6 @@ struct cyclades_port {
|
||||
int x_char; /* to be pushed out ASAP */
|
||||
int close_delay;
|
||||
unsigned short closing_wait;
|
||||
unsigned long event;
|
||||
int count; /* # of fd on device */
|
||||
int breakon;
|
||||
int breakoff;
|
||||
@@ -584,7 +583,6 @@ struct cyclades_port {
|
||||
struct cyclades_monitor mon;
|
||||
struct cyclades_idle_stats idle_stats;
|
||||
struct cyclades_icount icount;
|
||||
struct work_struct tqueue;
|
||||
wait_queue_head_t open_wait;
|
||||
wait_queue_head_t close_wait;
|
||||
struct completion shutdown_wait;
|
||||
@@ -592,19 +590,6 @@ struct cyclades_port {
|
||||
int throttle;
|
||||
};
|
||||
|
||||
/*
|
||||
* Events are used to schedule things to happen at timer-interrupt
|
||||
* time, instead of at cy interrupt time.
|
||||
*/
|
||||
#define Cy_EVENT_READ_PROCESS 0
|
||||
#define Cy_EVENT_WRITE_WAKEUP 1
|
||||
#define Cy_EVENT_HANGUP 2
|
||||
#define Cy_EVENT_BREAK 3
|
||||
#define Cy_EVENT_OPEN_WAKEUP 4
|
||||
#define Cy_EVENT_SHUTDOWN_WAKEUP 5
|
||||
#define Cy_EVENT_DELTA_WAKEUP 6
|
||||
#define Cy_EVENT_Z_RX_FULL 7
|
||||
|
||||
#define CLOSING_WAIT_DELAY 30*HZ
|
||||
#define CY_CLOSING_WAIT_NONE 65535
|
||||
#define CY_CLOSING_WAIT_INF 0
|
||||
|
Reference in New Issue
Block a user