mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
gigaset: prune use of tty_buffer_request_room
commit 873a69a358 upstream.
Calling tty_buffer_request_room() before tty_insert_flip_string()
is unnecessary, costs CPU and for big buffers can mess up the
multi-page allocation avoidance.
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Acked-by: Karsten Keil <keil@b1-systems.de>
CC: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
4ea1533c2b
commit
bddf110a16
|
|
@ -635,7 +635,6 @@ void gigaset_if_receive(struct cardstate *cs,
|
|||
if ((tty = cs->tty) == NULL)
|
||||
gig_dbg(DEBUG_ANY, "receive on closed device");
|
||||
else {
|
||||
tty_buffer_request_room(tty, len);
|
||||
tty_insert_flip_string(tty, buffer, len);
|
||||
tty_flip_buffer_push(tty);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user